Repository navigation
Fix flaky test 04007_pipeline_stuck_ping_pong_deadlock - #107565
alexey-milovidov merged 2 commits into
Conversation
This is a pipeline-deadlock regression test (issue ClickHouse#57728): it checks that a full_sorting_merge join with the PingPongProcessor / FilterBySetOnTheFly optimization no longer hangs. The deadlock detection is driven entirely by the pinned query-level SETTINGS (join_algorithm = 'full_sorting_merge', query_plan_join_swap_table = 0, max_threads = 2) and is independent of the table's on-disk layout. CI randomizes MergeTree settings per run, and two unrelated randomized combinations break this test without exercising any new pipeline behavior: 1. index_granularity = 1 with min_bytes_for_wide_part = 0 produces ~1M marks for the 1M-row tables, making each INSERT ~20x slower. On the slow amd_msan / WasmEdge runner this pushes the total runtime past the 180s timeout (seen on PR ClickHouse#101143). The query still returns the correct result; it is pure slowness, not a deadlock. 2. part_minmax_index_columns = 'with_block_number_offset' without enable_block_number_column / enable_block_offset_column is rejected at CREATE TABLE with BAD_ARGUMENTS (seen on PR ClickHouse#106734, amd_tsan and arm_binary). Pinning a single setting cannot cover both classes, and the test does not depend on MergeTree storage randomization for any of its coverage. Add the no-random-merge-tree-settings tag, which disables only MergeTree-settings randomization while leaving session-level setting randomization (where the pipeline / join behavior lives) intact. The same tag is used by sibling tests (00564, 00926, 02981) for the same reason. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate
Session id: cron:clickhouse-worker-slot-3:20260615-194100 |
|
Workflow [PR], commit [f5fd7bb] Summary: ❌
AI ReviewSummaryThis PR adds the Final VerdictStatus: ✅ Approve |
|
@groeneai, we have to fix Stress test (amd_tsan) FAIL |
|
@alexey-milovidov This Stress (amd_tsan) signal 6 (STID 7594-4269) is a re-introduced trunk crash, not caused by this PR. #107565 only retags The crash is It comes from the re-landed Multistage distributed queries feature (#106020). The same crash was previously taken to zero on master by revert #107122 and is back since the re-land. The same signature appears on 18+ unrelated PR branches and master in the last 30 days. Report for this sighting: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=107565&sha=8696805ace5dc74831f1ee4ac4645fbe5d43d71d&name_0=PR&name_1=Stress%20test%20%28amd_tsan%29 Fix in progress in a separate PR: wrap the lambda tail in the class's existing try/catch so re-enqueue failures land in TaskTracker's own exception channel, and make |
|
@alexey-milovidov The TaskTracker fix is up: #107575. It makes the distributed-plan worker status-check re-enqueue and |
…stuck-no-random-mt-settings
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 382 line(s), 25 function(s) across 124 file(s) · Details Top files
|
|
CI finished on
|
…anch This branch was accidentally created on top of `fix/04007-pipeline-stuck-no-random-mt-settings` (PR #107565) instead of `master`, so it carried that PR's change to `04007_pipeline_stuck_ping_pong_deadlock.sql` (a `no-random-merge-tree-settings` tag addition). That change is unrelated to this XDBC fix. It also made "Bugfix validation (functional tests)" fail: as this PR is labelled "Bug Fix", that job runs the changed functional tests against the unfixed binary and expects them to reproduce the bug, but the tag-only change passes there, so the job reported "Failed to reproduce". This XDBC fix is exercised by the integration test `test_jdbc_bridge_hang` instead, which the integration bugfix validation already confirmed. Restore the file to its `master` content; the tag fix stays with PR #107565. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Related: #57728
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
04007_pipeline_stuck_ping_pong_deadlockis a pipeline-deadlock regression test (issue #57728): it checks that afull_sorting_mergejoin using thePingPongProcessor/FilterBySetOnTheFlyoptimization no longer hangs. The deadlock detection is driven entirely by the pinned query-levelSETTINGS(join_algorithm = 'full_sorting_merge',query_plan_join_swap_table = 0,max_threads = 2) and is independent of the table's on-disk layout.CI randomizes MergeTree settings per run, and two unrelated randomized combinations break this test without exercising any new pipeline behavior:
index_granularity = 1withmin_bytes_for_wide_part = 0produces ~1M marks for the 1M-row tables, making eachINSERTroughly 20x slower. On the slowamd_msan/ WasmEdge runner this pushes the total runtime past the 180s timeout. The query still returns the correct result, so it is pure slowness, not a deadlock.part_minmax_index_columns = 'with_block_number_offset'withoutenable_block_number_column/enable_block_offset_columnis rejected atCREATE TABLEwithBAD_ARGUMENTS(seen onamd_tsanandarm_binary).A single-setting pin cannot cover both classes, and the test does not depend on MergeTree storage randomization for any of its coverage. The fix adds the
no-random-merge-tree-settingstag, which disables only MergeTree-settings randomization while leaving session-level setting randomization (where the pipeline / join behavior lives) intact. The same tag is used by sibling tests (00564,00926,02981) for the same reason.Validated locally: with MergeTree randomization the test fails (BAD_ARGUMENTS / timeout); with the tag it passes 50/50 under full randomization.
Version info
26.6.1.1