Repository navigation
Disable nuraft_use_bg_thread_for_snapshot_io by default - #106842
Conversation
Change the default of `nuraft_use_bg_thread_for_snapshot_io` from `true` to `false`, so snapshot objects are read synchronously from Raft worker threads instead of using a background thread for NuRaft snapshot IO. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Workflow [PR], commit [dfed3f1] Summary: ❌
AI ReviewSummaryThis PR changes the default of Keeper setting PR Metadata
Findings💡 Nits
Final VerdictStatus: Minimum required action: update the PR changelog metadata to describe the new default for |
…snapshot_io default The test asserted the old default value `true` of `nuraft_use_bg_thread_for_snapshot_io` reported by the `conf` four-letter command, while this PR changes the default to `false`. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=106842&sha=latest&name_0=PR PR: #106842 Co-Authored-By: Claude Fable 5 <[email protected]>
| DECLARE(Milliseconds, stream_suspect_retry_delay_ms, 1000, "Delay before reconnecting to the leader after a stream breaks while the new stream is suspected to be unhealthy", 0) \ | ||
| DECLARE(Milliseconds, stream_in_flight_drain_timeout_ms, 5000, "Maximum time to wait for in-flight requests to drain after a stream break (e.g. leader change) before dropping them", 0) \ | ||
| DECLARE(Bool, nuraft_use_bg_thread_for_snapshot_io, true, "Use a background thread for NuRaft snapshot IO instead of reading snapshot objects synchronously from Raft worker threads.", 0) \ | ||
| DECLARE(Bool, nuraft_use_bg_thread_for_snapshot_io, false, "Use a background thread for NuRaft snapshot IO instead of reading snapshot objects synchronously from Raft worker threads.", 0) \ |
There was a problem hiding this comment.
The previous PR that introduced nuraft_use_bg_thread_for_snapshot_io already merged with an Improvement changelog entry saying the setting is enabled by default. With this default flipped to false, leaving this PR as Not for changelog will make the generated release notes publish the wrong default for this Keeper setting. Please change the PR metadata to a changeloged category, for example Improvement, with an entry like: Changed the default value of Keeper setting nuraft_use_bg_thread_for_snapshot_io to false; set it to true to opt into NuRaft background snapshot IO.
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 7/7 (100.00%) | Lost baseline coverage: none · Uncovered code |
This PR changes the default of the
nuraft_use_bg_thread_for_snapshot_iocoordination setting fromtruetofalse.When enabled, NuRaft uses a background thread for snapshot IO; with this change the default reverts to reading snapshot objects synchronously from the Raft worker threads. The setting itself (added in
5918a8f57ab) is kept, so the background-thread behavior remains available by opting in explicitly.Close #106933
Changelog category (leave one):
Version info
26.6.1.599