Repository navigation
Revert "Revert "Fix SettingsConstraints erasing explicit settings before compatibility applies"" - #99311
Conversation
…efore compatibility applies""
|
Workflow [PR], commit [dd02322] Summary: ✅ AI Review1) SummaryThis PR reverts a prior revert and restores the 2) Missing context (if any)
3) Findings (by severity)No Blockers or Majors found; PR looks good. 4) Tests & Evidence
5) ClickHouse Compliance Checklist (Yes/No + short note)
6) Performance & Safety NotesThe change replaces 7) User-Lens ReviewBehavior is intuitive: explicit user-provided values now consistently win over compatibility defaults regardless of parameter order, matching user expectations. Error surfaces remain unchanged and actionable through existing setting-validation exceptions. 8) Final Verdict
|
LLVM Coverage Report
PR changed lines: PR changed-lines coverage: 100.00% (7/7) |
|
This is now causing issues in stress tests: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=b3f4a61127a60274cb98c8f576145e85352d0383&name_0=MasterCI&name_1=Stress%20test%20%28azure%2C%20amd_msan%29&name_1=Stress%20test%20%28azure%2C%20amd_msan%29 Stress tests use |
|
Revert here: #99352 |
…llel replicas interaction This reproduces #99311 (comment)
Reverts #98515 to restore #97078. Flaky CI possibly caused by this PR fixed here #98689
Note
Medium Risk
Changes how
SettingsConstraints::check(SettingsChanges&)filters/retains settings whencompatibilityis present, which can affect which query/session settings are considered changed and ultimately applied. The impact is limited but touches core settings processing and could alter behavior for clients relying on previous ordering/override semantics.Overview
Fixes an ordering bug where
SettingsConstraints::check(SettingsChanges&)could erase “unchanged” explicit settings before a latercompatibilitychange adjusts the baseline, allowing compatibility defaults to incorrectly override user-provided values.Adds a stateless regression test (
03916_check_settings_constraints_erases_with_compatibility) covering HTTP URL parameter ordering and TCP client flags to ensure explicit settings remain effective whencompatibility=24.12is used.Written by Cursor Bugbot for commit dd02322. This will update automatically on new commits. Configure here.
Version info
26.3.1.607