Repository navigation
Insert into the Join tables of 05494_join_hashed_keys without parallel replicas - #130995
Conversation
…allel replicas With parallel replicas, an `INSERT ... SELECT` into a `Join` table runs on every replica, and the inserts share the initial query id. `StorageJoin` takes its write lock by that id, so when two replicas insert at the same time, the second one fails with `DEADLOCK_AVOIDED`. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=129209&sha=013785db07d54a273f8795ffd2b6a00f4cb1345f&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29 Related: ClickHouse#129209 Related: ClickHouse#129328 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [c29c30a] Summary: ✅ AI ReviewSummaryPR #130995, reviewed at Final VerdictStatus: ✅ Approve. No changes requested. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the test change disabling parallel replicas on the two Join table inserts.
No open issues 🎉
What changed in this PR
This PR stabilizes the hashed-key join test by disabling parallel replicas for inserts into Join tables, avoiding concurrent writes with the same initial query ID that can trigger DEADLOCK_AVOIDED.
Changes:
- Adds
enable_parallel_replicas = 0to bothJointable inserts, matching the existing read behavior. - Adds a comment explaining why these inserts must run without parallel replicas.
| File | Description |
|---|---|
tests/queries/0_stateless/05494_join_hashed_keys.sh |
Disables parallel replicas for two Join table inserts and documents the reason. |
Review effort: Balanced
bf19dfe
With parallel replicas, an
INSERT ... SELECTinto aJointable runs on every replica, and the inserts share the initial query id.StorageJointakes its write lock by that id, so when two replicas insert at the same time, the second one fails withDEADLOCK_AVOIDED. The test now inserts into itsJointables without parallel replicas, as it already reads them.https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=129209&sha=013785db07d54a273f8795ffd2b6a00f4cb1345f&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29
Related: #129328
Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/130995]
Version info
26.11.1.2073-master(included in26.11and later)