Repository navigation
Stable 24.8 Backport of #99628 - Fix TOCTOU race in vertical merge cancellation - #2816
Conversation
Fix TOCTOU race in vertical merge cancellation Conflicts committed as-is; the next commit resolves them: - src/Storages/MergeTree/MergeTask.cpp (both modified)
Took the PR's latch-cancellation code in the horizontal executeImpl conflict; the vertical-stage hunk applied cleanly.
|
Port-AL: cherry-pick conflicts resolved by AI Conflicted files:
Commits:
|
|
This is an automated comment for commit 4909aea with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
CI triage for 4909aea: none of the failures come from this PR3 failing checks: 0 PR-caused, 1 infra (memory pressure), 1 known flaky, 1 process/policy (DCO). The PR's own regression test 1. Stateless tests (asan) [2/2]: 4 failed / 3500 passed. Infra (server-wide memory pressure), not PR-relatedAll 4 failures fall in one ~30 s window (22:52:21–22:52:53). None of them involves MergeTree merges:
The whole server hit its total memory limit while memory-heavy tests were running in parallel ( 2. Integration tests (release) [2/6]: 2 failed / 405 passed. Known flaky, not PR-related
One replica took every file, so the other shard got none. That is a timing problem in how S3Queue spreads work across replicas, and S3Queue has nothing to do with vertical merges. Upstream has reported this test as flaky several times: ClickHouse#59830, ClickHouse#86406, ClickHouse#91391. 3. DCO: process/policy, not a code problemNone of the 3 commits on the branch (
Bottom line: I see no regression from this backport. Re-run the two failed jobs. If they fail again on the same tests, I'll reproduce them against the CI binary. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix a rare logical error exception during vertical merge when
SYSTEM STOP MERGESandSYSTEM START MERGESare executed concurrently. (ClickHouse#99628 by @Daedalus-Icarus)Documentation entry for user-facing changes
...
CI/CD Options
Exclude tests:
Regression jobs to run: