Repository navigation
fix: wait for keeper followers to sync before updating the next replica - #402
Conversation
|
Workflow [PR], commit [2f91c0e] Summary: ✅ Code ReviewResult: ✅ No issues found What changed: Adds parsing of the Keeper leader’s No issues found. The synchronization check is evaluated before revision differences, and the dedicated Investigation: 8/13 rounds, 43 tool calls. |
7911e17 to
1fd7066
Compare
AI review gate — AI review findings accepted by a maintainerThe reviewer reported findings on this commit. Each of the 2 on the current code was answered and resolved by a maintainer: @GrigoryPervakov. |
The leader reports NotReadyUpToDate while zk_synced_followers < zk_followers, so the rollout does not restart the next replica while a restarted follower is still catching up with the leader log. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1fd7066 to
2f91c0e
Compare
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 2f91c0e. Configure here.
AI review gate — auto-approved
History (latest 5 heads, newest first)
|
|
/ai-gate check |
Why
A rolling upgrade of the keeper cluster can restart the next replica while the just-restarted one is not yet up to date.
What
The leader reports NotReadyUpToDate while zk_synced_followers < zk_followers
Workflow [PR]
Note
Medium Risk
Changes keeper rolling-update gating logic; misreading or strict parsing of
zk_synced_followerscould stall upgrades or allow unsafe progression.Overview
Fixes keeper rolling upgrades advancing to the next replica while a restarted peer is still catching up on the leader.
Leader health probing now reads
zk_synced_followersfrom themntrresponse and stores it onserverStatus.UpdateStagetreats a leader withSyncedFollowers < FollowersasStageNotReadyUpToDate, evaluated before spec/revision diff, so an outdated leader also blocks further restarts until followers sync.The reconcile loop handles
StageNotReadyUpToDatewith an immediate requeue (probe poll) instead of continuing into replica update selection, avoiding pending leader changes while quorum sync is incomplete. Tests cover mntr parsing, update-stage classification, and thatreconcileReplicaResourcesdoes not roll the leader when followers are unsynced.Reviewed by Cursor Bugbot for commit 2f91c0e. Bugbot is set up for automated code reviews on this repo. Configure here.