Repository navigation
Update NuRaft to fix snapshot install livelock with background snapshot IO - #107338
Conversation
…ot IO Bumps contrib/NuRaft to 4d591d2 (branch fix-async-snapshot-io-livelock), which fixes a livelock in snapshot install when snapshot IO runs on a background thread. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Workflow [PR], commit [f0bde4a] Summary: ✅
AI ReviewSummaryThis PR bumps Missing context / blind spots
Final VerdictStatus: ✅ Approve |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 7/7 (100.00%) | Lost baseline coverage: none · Uncovered code |
|
@kssenii I'm going to disable the setting by default and randomize it in CI like you suggested in the last PR, seems a safer thing to do. |
… it in CI - Change default value from `true` to `false` - Add `nuraft_use_bg_thread_for_snapshot_io` to `keeper_port.xml` with default 0 and randomize it in `install.sh` (covers stateless and stress checks) - Wire the setting through Jepsen: add placeholder to `keeper_config.xml`, substitution in `db.clj`, CLI option in `main.clj`, and random selection in `run.sh` - Bump NuRaft submodule to fff08ccaf16646941d91ab0d26b94c76c17e44d1 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
The setting lives in `<coordination_settings>`, which the server parses
strictly: an older binary that does not know it refuses to start with
`UNKNOWN_SETTING`. The upgrade check starts the previous release with the
current config, so it failed to start ("Cannot start clickhouse-server").
Gate the `keeper_port.xml` setting strip on a new `--previous-release` flag in
addition to `--bugfix-validation`, and pass `--previous-release` from the
upgrade check's previous-release `configure` (not the post-upgrade one). Strip
`nuraft_use_bg_thread_for_snapshot_io` there; drop the `use_xid_64` and
`remove_recursive` strips, which the previous release already supports.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
📊 Cloud Performance Report ✅ AI verdict: This PR only changes ClickHouse Keeper (a NuRaft submodule bump) and Keeper/Jepsen test configuration; nothing in the server query-execution path is touched. The flagged improvements on ClickBench Q22/Q23 and TPC-H Q7/Q20 therefore cannot be attributed to this change and are treated as run-to-run variance, especially given the noisy baseline runs. TPC-H Q4's borderline, mixed-signal regression was already trending before this PR and is not introduced here. Net: no query-execution impact expected from a Keeper-only change. clickbenchFlagged queries (2 of 43)
q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_officialFlagged queries (3 of 22)
q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. Debug info
|
Bumps `contrib/NuRaft` to fix a livelock during snapshot install when
snapshot IO runs on a background thread.
The `nuraft_use_bg_thread_for_snapshot_io` Keeper coordination setting remains
disabled by default (`false`). To get CI coverage of both modes, the setting is
now randomized in stateless tests (via `tests/config/install.sh`) and in Jepsen
tests (via `run.sh`).
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Updated `NuRaft` with a fix for a snapshot-install livelock that occurred when snapshot IO ran on a background thread. The `nuraft_use_bg_thread_for_snapshot_io` Keeper setting remains disabled by default; CI now randomizes it to cover both modes.
Documentation entry:
Version info
26.6.1.886