Skip to content

Fix snapshot config selection#111

Open
antonio2368 wants to merge 2 commits into
masterfrom
fix-keeper-config-rollback-compact
Open

Fix snapshot config selection#111
antonio2368 wants to merge 2 commits into
masterfrom
fix-keeper-config-rollback-compact

Conversation

@antonio2368
Copy link
Copy Markdown
Member

No description provided.

antonio2368 added a commit to ClickHouse/ClickHouse that referenced this pull request May 25, 2026
`KeeperStateMachine` now persists and restores the committed cluster config separately from the latest `NuRaft` config. `KeeperServer` chooses the newest valid config from snapshot, committed store, or logs bounded by the committed or snapshot index, so restart after rollback and compaction cannot apply uncommitted membership.

`KeeperLogStore` exposes cutoff-aware config lookup and `contrib/NuRaft` is bumped to PR `111`, which fixes snapshot config selection in `raft_server::snapshot_and_compact`.

NuRaft PR: ClickHouse/NuRaft#111

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=105784&sha=651ec2e7736bce8974e0c7046a6e267b04bacb4f&name_0=PR&name_1=Fast%20test

ClickHouse PR: #105784
Reject empty or future configs when choosing snapshot metadata, fall back to a valid committed/current config where possible, and refresh target priority when skipping stale config commits.
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