You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Root Cause Analysis: "Test script failed" in Stress Tests
PR #97078 ("Fix SettingsConstraints erasing explicit settings before compatibility applies"), merged as 28cd79a2445 on March 2, 12:40 UTC, is the trigger.
Statistical proof
Commit range
Failure rate
23 commits before 28cd79a2445 on March 2
0% (0 out of ~200 stress runs)
cb7037cb8b1 (immediate parent)
0% (0/9)
28cd79a2445 (fix-settings merge)
10% (1/10)
Subsequent commits
10–31%
The single March 1 failure (1/9 runs at 5a0a680930b0) was random chance with the baseline ~1–2% probability from settings randomization.
Mechanism
The stress test smoke check runs test 00234_disjunctive_equality_chains_optimization with randomized settings, which can include:
compatibility='25.1' from get_options (20% of processes)
use_hedged_requests=1 from SettingsRandomizer (50% probability)
Parallel replicas via enable_parallel_replicas=1 (20%) or automatic_parallel_replicas_mode=2 (25%)
use_hedged_requests defaults to true (src/Core/Settings.cpp:355).
Before #97078: SettingsConstraints::check called getNewValueToCheck, which checked if the new value equals the current value. Since use_hedged_requests=1 matches the default true, the setting was erased from the changes list. The changed flag remained false, and the hedged requests warning in updateContextForParallelReplicas (src/Interpreters/ClusterProxy/executeQuery.cpp:494–518) never fired.
After #97078: When compatibility is present in the same batch of settings, SettingsConstraints::check now keeps all settings even if they match current values (to prevent compatibility from overriding explicit user values). So use_hedged_requests=1 is kept, applied, and marked as changed=true. The hedged requests warning fires, stderr becomes non-empty, and the smoke check test fails.
The warning that fires
Hedged requests are not compatible with parallel replicas. Settings 'use_hedged_requests' will be disabled.
This Warning-level log message is forwarded to client stderr because send_logs_level defaults to "warning" in clickhouse-test. The test then fails because the reference file doesn't expect anything on stderr.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #97078
Version info
26.3.1.275