Repository navigation
Revert URL cancellation PRs to fix flaky 02270_errors_in_files_s3 - #104077
Conversation
|
Workflow [PR], commit [4cf703f] AI ReviewSummaryThis PR reverts recent URL-query cancellation changes to stop flaky failures in Findings❌ Blockers
ClickHouse Rules
Final Verdict
|
| #!/usr/bin/env bash | ||
| # Tags: no-fasttest, no-sanitizers-lsan, long | ||
| # Test that KILL QUERY cancels HTTP requests in url() function early. | ||
| # Tests cancellation during both HEAD and GET phases, with different |
There was a problem hiding this comment.
Removing an existing stateless test is risky here. Even if we're reverting the cancellation implementation, we should keep coverage by replacing this with a deterministic regression test for the parser-error path that caused flakiness, rather than dropping the test entirely.
ClickHouse review rule: do not delete or relax existing tests; add/adjust tests to cover the new intended behavior.
LLVM Coverage Report
Changed lines: 100.00% (31/31) | lost baseline coverage: 2 line(s) · Uncovered code |
Revert #102801 ("Improve canceling queries with url() function") and #104014
("Refactor canceling queries with url() function") because they introduced
flakiness in
02270_errors_in_files_s3(and likely other tests usingurl()with globs and
max_threads > 1).The added cancellation hook in
ReadWriteBufferFromHTTP::doWithRetriesraceswith the parser-error path: when one source's parse exception triggers
pipeline cancellation, sibling sources can throw
QUERY_WAS_CANCELLEDwithout the
(in file/uri ...)annotation, so the original parse error andits URL context are lost.
Failure rate jumped to ~1.5% across master and PR runs after #102801 was
merged on 2026-05-04, with 38 failures on 2026-05-04 and 19 on 2026-05-05
(vs. 0 in the prior month). First master-CI failure: commit b7c00c2.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes
Version info
26.5.1.282