Repository navigation
Fix flaky test 03560_parallel_replicas_memory_bound_merging_projection - #107444
alexey-milovidov merged 1 commit into
Conversation
The test fails intermittently with Code 160 TOO_SLOW, e.g.: Estimated query execution time (1198.32 seconds) is too long. Maximum: 600. Estimated rows to process: 1000000 (291662 read in 349.50 seconds) While executing MergeTreeSelect(pool: ReadPoolParallelReplicasInOrder, algorithm: InOrder) The CI test environment sets max_estimated_execution_time=600 (tests/config/users.d/limits.yaml). Under randomized settings and slow storage (observed on the amd_tsan s3 shard), the parallel-replicas in-order read starts slowly, so the linear extrapolation in ExecutionSpeedLimits::throttle over-predicts the total runtime and aborts the query before it can finish. The clickhouse-test randomized-settings minimizer confirms it: 28/28 runs pass with randomization disabled. This test checks projection plans and results, not execution speed, so the estimated-time guard is irrelevant here. Disable it for the test by setting max_estimated_execution_time=0. The SET is placed before the echoOn block so the reference output is unchanged. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate
Session id: cron:clickhouse-worker-slot-2:20260614-171700 |
|
cc @nickitat — could you review this? It pins |
|
Workflow [PR], commit [f9897e4] Summary: ✅ AI ReviewSummaryThis PR scopes a stateless-test stabilization to Final VerdictStatus: ✅ Approve |
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 329 line(s), 39 function(s) across 121 file(s) · Details Top files
|
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Fix flaky
03560_parallel_replicas_memory_bound_merging_projection. It fails intermittently withCode 160 TOO_SLOW:The CI test env sets
max_estimated_execution_time=600(tests/config/users.d/limits.yaml). Under randomized settings and slow storage (observed on theamd_tsan, s3 storageshard), the parallel-replicas in-order read starts slowly, so the linear extrapolation inExecutionSpeedLimits::throttleover-predicts the runtime and aborts before the query finishes. Theclickhouse-testrandomized-settings minimizer confirms it: 28/28 runs pass with randomization disabled.This test checks projection plans and results, not execution speed, so the estimated-time guard is irrelevant here. Set
max_estimated_execution_time=0for the test (before theechoOnblock, so the reference output is unchanged).Found on the CI run of #107429 (report); unrelated to that PR's NuRaft change. No related open issue found.
Version info
26.6.1.800