Skip to content

Observe lease release before expiry worker restart - #585

Merged
SaladDay merged 1 commit into
aos/cutoverfrom
aos/observe-expiry-restart-lease-release
Oct 8, 2026
Merged

SaladDay merged 1 commit into
aos/cutoverfrom
aos/observe-expiry-restart-lease-release

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Environment Worker restart tests could start the next Worker before PostgreSQL had released the previous backend's advisory lease, failing startup with ErrLeaseHeld. Both restart fixtures now use the existing lease-release observer before starting the next Worker. Production behavior and all expiry/deadline assertions remain unchanged.

Validation: both restart scenarios passed 50 repetitions under the race detector; all 128 tests selected by affected integration shard 2/3 passed (151.789s) against a dedicated PostgreSQL database with the pinned official SDK; full six-line diff review and whitespace checks passed. The original CI failure is recorded in #583; the baseline did not reproduce locally during 50 race repetitions.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@SaladDay
SaladDay merged commit dd7c982 into aos/cutover Oct 8, 2026
1 check passed
@SaladDay
SaladDay deleted the aos/observe-expiry-restart-lease-release branch October 8, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant