Repository navigation
Add cancellation check to ObjectStorage read operation - #103016
Conversation
|
Workflow [PR], commit [6aff536] Summary: ❌
AI ReviewSummaryThis PR adds a post-callback cancellation/time-limit check for object-storage cluster reads, a test failpoint, and an PR Metadata
Findings❌ Blockers
Tests
Final VerdictStatus: ❌ Block Minimum required actions: handle the |
alesapin
left a comment
There was a problem hiding this comment.
Let's add cancellation check as discussed
|
This was fixed by #105146. Let's update the branch. |
|
|
|
📊 Cloud Performance Report 🟢 AI verdict: This PR adds a test-only failpoint (storage_cluster_read_sleep) and a checkTimeLimit() call in the object-storage cluster read iterator so that S3/Iceberg cluster reads honor max_execution_time instead of hanging. None of this touches the query-execution path that ClickBench or TPC-H exercise (local MergeTree tables), so the flagged improvements are not attributable to the change. The smaller ClickBench deltas were downgraded as off-path baseline variance; four large deltas (ClickBench Q22/Q23, TPC-H Q7/Q20) are large and consistent enough to stand on their own, but they reflect a baseline build difference between the compared versions, not this PR. clickbench🟢 2 improved · Flagged queries (9 of 43)
q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 2 improved Flagged queries (2 of 22)
q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. Debug info
|
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 23/23 (100.00%) | Lost baseline coverage (was covered on master, now uncovered in this PR): 1 line(s) · Uncovered code |
| auto task = callback(); | ||
|
|
||
| if (auto query_status = getContext()->getProcessListElement()) | ||
| query_status->checkTimeLimit(); |
There was a problem hiding this comment.
QueryStatus::checkTimeLimit has a non-throwing failure path: with timeout_overflow_mode = 'break', ExecutionSpeedLimits::checkTimeLimit returns false instead of throwing. This new cancellation boundary ignores that return value, so object-storage cluster reads can continue after max_execution_time once the delayed task callback returns, which violates the supported break timeout mode.
Please handle the false result here, for example by stopping the iterator before consuming the returned task:
if (auto query_status = getContext()->getProcessListElement())
if (!query_status->checkTimeLimit())
return nullptr;and add a focused test with timeout_overflow_mode = 'break'.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Added cancellation check to ObjectStorage read operation. resolves ##98165
Documentation entry for user-facing changes
Version info
26.6.1.849