Skip to content

Writer lease follow-ups: renewal after a lock wait, watchdog after drain, retry timer on failed startup #490

Closed

Description

@lavaman131

Follow-ups from the writer-lease fix (#486, #487):

  1. Renewal can extend a lease that expired while the renewal waited on a row lock held by a session that only locked the row (acquire's FOR UPDATE finding a live lease): PostgreSQL doesn't recheck the expiry predicate after such a wait. No second writer results, but the renewal should lock first and then check expiry.
  2. A renewal that completes after drain() cleared the watchdog arms a new one.
  3. The startup-failure path doesn't clear the lease retry timer.

Activity

  1. self-assigned this
    on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions