Repository navigation
Conversation
The test checks that a probe task of a distributed plan does not wait for the runtime filter: every probe (stage_0) task must take less than half the time of the build (stage_1) task, which sleeps about 10 seconds. On the azure lane the default MergeTree policy is a filesystem cache over Azurite. A read there can wait seconds for locks that exist only on object-storage disks (the cache lock held by consistency checks in sanitizer builds, the metadata storage mutex during part commits). The probe task's query_duration_ms counts from its process-list entry, which is created before the scan of `big`, so such a wait makes a probe task look like one that waited for the filter, and the check prints `1 1 0`. Use storage_policy = 'default' for both tables. Storage is incidental to what the test guards, and on local-disk lanes nothing changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding) plus my own review. No blocker or major.
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261016-091100 |
|
Workflow [PR], commit [1cfcb6d] Summary: ✅ AI ReviewSummaryPins both tables in Final Verdict✅ Approve. |
|
cc @davenger, could you review this? The probe-task duration check in 04949 failed once on the azure lane, where the tables sit on a filesystem cache over Azurite; pinning both tables to |
279de84
On the azure lane the default MergeTree storage policy is a write-through filesystem cache. The test's valid native-protocol INSERT writes a one-row part, and every file of that part reserves cache space under the cache's priority write lock. In Stateless tests (arm_asan_ubsan, azure, parallel) on PR ClickHouse#126978 that INSERT spent 34.07 s of 34.43 s waiting on the lock (FilesystemCachePriorityWriteLockMicroseconds), so the server's correct End of stream arrived 4.4 s after the python client's hard-coded 30 s socket timeout and the test failed with TimeoutError in readStrict. The storage is incidental to a native-protocol LowCardinality test, so pin the table to storage_policy = 'default' (the local disk on every lane). The part write stays MergeTree, the 30 s hang guard and the .reference are unchanged. Same shape as ClickHouse#122567 (04344) and ClickHouse#126252 (04949) for this lock. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required.
Description
Related: #114822
Stateless tests (arm_asan_ubsan, azure, parallel)on PR #126147 printed1 1 0: a probe task (stage_0) took at least half as long as the build task (stage_1, which sleeps 10 s). The job later timed out, so the failure has no CIDB row and no server log.On the azure lane the default MergeTree policy is a filesystem cache over Azurite. A read there can wait seconds for locks that only object-storage disks have, and a probe task's
query_duration_msstarts before it scansbig, so such a wait looks like a task that waited for the filter. In local mode probe tasks do not linger:RuntimeFilterReceiveBranches::finishcancels every receive branch within its 50 ms poll. Without a log the stall is inferred: the test failed only on the azure lane (1 of about 450 runs, 0 of about 8,500 elsewhere, 3,500 of them flaky-check runs), which also has its longest durations (up to 78 s, against 17 s for the same build on a local disk).Both tables now use
storage_policy = 'default'. The check, the sleep and the settings are unchanged; local-disk lanes see no difference.Validation (master debug build):
1 1 03/3 (probe tasks about 15.3 s,RuntimeFilterStatesReceived = 0), the new one1 1 13/3 (probe tasks 52-226 ms).finishnot cancelling the branches, the new test fails 3/3 (probe tasks about 10 s, each received the filter), so it still catches a lingering probe task.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/126252]
Version info
26.11.1.73-master(included in26.11and later)