Skip to content

fix: resolve race condition in WriteSafeRegistry lock release#737

Merged
ikalachy merged 1 commit into
mainfrom
fix/write-safe-registry-lock-race-condition
Jun 12, 2026
Merged

fix: resolve race condition in WriteSafeRegistry lock release#737
ikalachy merged 1 commit into
mainfrom
fix/write-safe-registry-lock-race-condition

Conversation

@ikalachy

Copy link
Copy Markdown
Collaborator

Use Future.andThen() instead of onComplete() for lock release to ensure the distributed lock is fully released before the next queued operation starts acquiring it. Also skip redundant put() in SharedRegistry when the value already exists, and add polling helper to cluster test for CI stability.

Use Future.andThen() instead of onComplete() for lock release to ensure
the distributed lock is fully released before the next queued operation
starts acquiring it. Also skip redundant put() in SharedRegistry when
the value already exists, and add polling helper to cluster test for CI
stability.
@ikalachy ikalachy requested a review from a team as a code owner June 12, 2026 11:58

@carlspring carlspring left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Also, thanks for the code cleanup.

@ikalachy ikalachy merged commit 4e96f92 into main Jun 12, 2026
9 checks passed
@ikalachy ikalachy deleted the fix/write-safe-registry-lock-race-condition branch June 12, 2026 13:43
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.

2 participants