-
Notifications
You must be signed in to change notification settings - Fork 2
Hide transient leader errors behind bounded retries in coordinator #618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
18a25bd
fix(kv): absorb leader churn server-side so gRPC stays linearizable
claude 52ec37c
style(adapter): drop trailing blank line to satisfy gci
claude 24b09cc
refactor: address gemini-code-assist review comments
claude 31ca8bd
fix(kv): refresh StartTS and honour ctx on Dispatch retry
claude fead00e
refactor(kv): extract Dispatch retry helpers to satisfy cyclop
claude e53e743
fix(kv): classify wire-level not-leader errors + add retry-loop tests
claude 88a08bd
style(kv): appease golangci on coordinator_retry_test
claude 4f10504
fix(kv): enforce retry-budget strictly in Dispatch and LeaderProxy
claude 3b136d5
fix(kv): cap each dispatchOnce attempt by remaining retry budget
claude afd8e30
fix(kv): never discard a committed dispatch; defensive nil-err + nits
claude db58eef
refactor(kv): extract retry helpers to satisfy cyclop on Dispatch + f…
claude 7ce64f5
fix(kv): classify leadership-loss/transfer wire strings as transient
claude e410490
fix(kv): tighten transient-leader phrase match to suffix only
claude 640f009
fix(kv): enforce retry budget strictly across the back-off sleep
claude 846125b
style(kv): drop gosec G115 + cyclop violations from retry back-off
claude 29e1f2e
fix(kv): surface transient leader error on retry-budget expiry
claude 26f086f
docs(kv): sync isTransientLeaderError doc + stabilise LeaderProxy tes…
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
wg.Done()call should be deferred at the beginning of the goroutine to ensure it is always executed, even if a panic occurs or if early returns are added in the future. Additionally, the use ofcontext.TODO()is inconsistent withcontext.Background()used earlier in the same test.