Repository navigation
Fix flaky 03309_json_with_progress_exception: timeout in pending state - #111208
Algunenano merged 1 commit into
Conversation
When max_execution_time fired while a query was still pending (being
analyzed/planned, before any executor started), the pending-state check
in executeQuery threw QUERY_WAS_CANCELLED ("killed in pending state")
regardless of the cancel reason, instead of TIMEOUT_EXCEEDED. Under load
this made 03309_json_with_progress_exception flaky.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Workflow [PR], commit [5843b0e] Summary: ✅
AI ReviewSummaryThis PR fixes the pending-state timeout path in PR Metadata
Findings💡 Nits
Final Verdict
|
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 6/7 (85.71%) · Uncovered code |
b319878
…ing-state-error-code Fix flaky 03309_json_with_progress_exception: timeout in pending state
When
max_execution_timefires while a query is still pending (being analyzed/planned, before any executor starts), the client now getsTIMEOUT_EXCEEDEDinstead of a genericQUERY_WAS_CANCELLED"killed in pending state", matching the error it would get had the deadline fired during execution. Under load this was making03309_json_with_progress_exceptionflaky, because the query occasionally spends more than a second in planning and the deadline fires before execution begins.Closes: #111198
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Version info
26.8.1.75(included in26.8and later)