Repository navigation
Fix flaky test 03096_order_by_system_tables - #109365
alexey-milovidov merged 2 commits into
Conversation
The test runs SYSTEM FLUSH LOGS only to materialize every system log table so it can check their sorting keys; it reads no log rows. The global flush blocks up to the 180s waitFlush timeout (SystemLogBase.cpp) draining the server-wide log queues (query_metric_log, trace_log, ...). Under many concurrent parallel tests that backlog can exceed 180s, producing Code: 159 TIMEOUT_EXCEEDED. All 18 such failures over 180 days are on parallel + slow-backend lanes (coverage, s3 storage, tsan); 0 on master; CI reruns pass 38/38 (contention, not randomized settings). Add no-parallel so the test runs in the sequential phase, after the parallel flood ends, when no other test is feeding the shared queues. Keep no-llvm-coverage. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-9:20260703-202800 |
|
Workflow [PR], commit [c15b95f] Summary: ✅ AI ReviewSummaryI reviewed the current PR diff and the surrounding runner behavior for Final Verdict✅ No blocking issues found. |
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 115 line(s), 2 function(s) across 46 file(s) · Details Top files
|
CI finish ledger — 7f31257Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task whose fixing-PR link will be posted here when it opens. Only
None PR-caused (#109365 changes only tests/queries/0_stateless/03096_order_by_system_tables.sql). The macOS numpy/pandas ModuleNotFoundError class was fixed by #108859 (merged 2026-07-03; runner hosts re-provisioning); 04061 is owned by our open fix #109334. Session id: cron:our-pr-ci-monitor:20260704-013000 |
CI finish ledger - c15b95fCI is fully finished on this head with no failing checks, so there is nothing to Session id: cron:our-pr-ci-monitor:20260729-083000 |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Description
Fixes the flaky
03096_order_by_system_tables.Requested by @alexey-milovidov in #109245 (comment) (that PR only touches
programs/server/play.html, so it cannot affect this stateless SQL test; the failure there was the transient variant below).Despite its name the test has no
ORDER BYand an empty reference. It runsSYSTEM FLUSH LOGSonly to materialize every enabled system log table, then checks that none has a non-default sorting key. It reads no log rows.The global
SYSTEM FLUSH LOGSblocks up to the 180swaitFlushtimeout (SystemLogBase.cpp) draining the server-wide log queues (query_metric_log,trace_log, ...). Under many concurrent parallel tests that shared backlog can exceed 180s, producing:CIDB, last 180 days: every timeout failure (18, excluding one unrelated Fast test) is on a
parallel+ slow-backend lane (coverage, s3 storage, tsan). 0 on master. On the failing runs CI reruns pass (e.g. 38/38 on PR #109245), so it is contention, not randomized settings.Fix: add
no-parallelso the test runs in the sequential phase, after the parallel flood ends, when no other test is feeding the shared queues; the flush then drains only the tiny residual backlog.no-llvm-coveragekept (coverage instrumentation slows the flush enough to time out even on that residual). The sorting-key check is unchanged.