Repository navigation
Refactor canceling queries with url() function - #104014
Merged
Merged
Conversation
Contributor
Author
|
@murphy-4o please set |
Contributor
|
Workflow [PR], commit [b5afa51] Summary: ✅ AI ReviewSummaryThis PR refactors cancellation plumbing for ClickHouse Rules
Final VerdictStatus: ✅ Approve |
Contributor
LLVM Coverage Report
Changed lines: 100.00% (14/14) · Uncovered code |
1 task
1 task done
pull Bot
pushed a commit
to weiyilai/ClickHouse
that referenced
this pull request
Sep 26, 2026
Check query cancellation between HTTP retry attempts, so that `KILL QUERY` and client disconnects stop a query over the `url` table function instead of waiting until all the retries are exhausted. `ReadWriteBufferFromHTTP` accepts an optional cancellation callback and, from the second attempt on, leaves `doWithRetries` by `break` instead of throwing, so the original HTTP error is still reported on the first attempt. `StorageURLSource` passes `isCancelled` down to the buffer and checks for cancellation after every step of its lazy initialization that can issue an HTTP request. This is a resubmission of ClickHouse#104089 by Roman Vasin (@rvasin) into the main repository, so that we can continue to work on it. That pull request in turn fixes the reverted ClickHouse#102801 and ClickHouse#104014. Differences from the original pull request: a comment in `ReadWriteBufferFromHTTP::initialize` that a bad merge had garbled is restored, the condition of the `chassert` in `readBigAt` is parenthesized, and the test is renumbered to `04615` because `04078` is taken on `master`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
It's refactoring follow up to #102801
Version info
26.5.1.268