Skip to content

fix: wait for keeper followers to sync before updating the next replica - #402

Open
GrigoryPervakov wants to merge 1 commit into
mainfrom
fix/keeper-rollout-synced-followers
Open

GrigoryPervakov wants to merge 1 commit into
mainfrom
fix/keeper-rollout-synced-followers

Conversation

@GrigoryPervakov

@GrigoryPervakov GrigoryPervakov commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

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]

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>
@clickhouse-operator

clickhouse-operator Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Workflow [PR], commit [7911e17]

Summary: ✅


Code Review

Result: ✅ No issues found

What changed: Adds parsing of Keeper's zk_synced_followers monitoring metric and prevents rolling to the next replica while the leader reports any connected follower still catching up. Includes parser and update-stage tests for synchronized and lagging follower states.

No issues found. The new readiness stage correctly takes priority over revision differences, and existing quorum checks ensure the expected followers are present before rolling updates proceed.

Investigation: 8/13 rounds, 45 tool calls.

This branch has not been deployed

No deployments
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