Repository navigation
Antalya 26.3 Backport of #99628 - Fix TOCTOU race in vertical merge cancellation - #2820
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 latched cancellation in executeImpl; the other hunk applied cleanly.
|
Port-AL: cherry-pick conflicts resolved by AI Conflicted files:
Commits:
|
CI triage for
|
| Check | Failure | Verdict |
|---|---|---|
| Stateless tests (amd_debug, sequential) | 03271_s3_table_function_asterisk_glob |
Pre-existing (external S3 / network) |
| Stateless tests (amd_debug, distributed plan, s3 storage, sequential) | 03271_s3_table_function_asterisk_glob |
Pre-existing (same) |
| DCO | No Signed-off-by on either commit |
On this PR, but metadata only, not code |
Everything else that ran is green: builds, fast/quick tests, the other stateless suites (asan, ubsan, debug parallel), integration (asan, binary), unit, stress, AST fuzzer, BuzzHouse, SQLLogic, compatibility, and the regression suites. Many tsan/msan/arm jobs were skipped by the workflow config.
1. 03271_s3_table_function_asterisk_glob (both amd_debug sequential suites)
Reason: return code: 159
Error on processing query: Timeout exceeded while receiving data from server. Waited for 300 seconds, timeout is 300 seconds.
(query: SELECT * FROM s3('https://clickhouse-public-datasets.s3.amazonaws.com/wikistat/original/*', NOSIGN) LIMIT 1 FORMAT Null;)
- Not caused by this PR. The query globs a very large public AWS bucket over the internet. This PR only changes the vertical-merge cancellation in
MergeTask.cpp, which is never reached by ans3()table-function read. - The same failure shows up elsewhere on
antalya-26.3. The identical test fails in the same two suites on unrelated PRs: - The earlier queries in the test returned the expected output. Only the call to the external bucket timed out.
- Next step: nothing to do on this PR. If it keeps failing across the branch, it is worth tagging the test as network-dependent or skipping it on Altinity CI, as a separate change.
2. DCO
All commits are incorrectly signed off, the check did not pass.
🔴 2106669 Merge pull request #99628 from Desel72/fix/issue-9... Sign-off not found
🔴 2d7cba9 Resolve conflicts in backport of #99628 Sign-off not found
- The backport tooling made the cherry-pick commit (
2106669) and the conflict-resolution commit (2d7cba9), and neither has aSigned-off-by:line. - Fix, either of:
- Push a DCO remediation commit with no file changes, e.g.
git commit --allow-empty -swith theI, <name>, hereby add my Signed-off-by to this commit: <sha>lines for both SHAs (dco2 docs). - Have a maintainer set DCO to pass, if that's how backport PRs are usually handled.
- Push a DCO remediation commit with no file changes, e.g.
- I didn't push anything: a sign-off has to come from the committer, and rewriting history would need a force-push.
Notes
- Base for the "pre-existing" call: the praktika
result_pr.jsonreports for this PR, Antalya 26.3 - parameterize s3 bucket #2782 and Antalya 26.3 Backport of #2330 - Add 409 to the non-retriable HTTP Error list #2739. - I didn't re-run the test locally because it needs internet access to public S3, and the blau test server has none.
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: