Repository navigation
Add cancellation check for system sync merges - #104944
Conversation
|
Workflow [PR], commit [164778e] Summary: ❌
AI ReviewSummaryThis PR adds timeout and cancellation handling to Findings
Tests
Final Verdict
|
| poll_delay.setConfiguration(/*min_delay_=*/50, /*max_delay_=*/500, /*factor_up_=*/2.0, /*factor_lower_=*/1.0); | ||
|
|
||
| while (true) | ||
| const auto timeout = getContext()->getSettingsRef()[Setting::receive_timeout]; |
There was a problem hiding this comment.
This changes the contract of SYSTEM SYNC MERGES from unbounded wait to timeout-bounded wait, and also adds a cancellation exception path, but there is no focused regression test for either branch.
Please add a stateless test that proves at least one of these new outcomes deterministically (for example, low receive_timeout leading to TIMEOUT_EXCEEDED when scheduled parts cannot be covered, and/or cancellation leading to QUERY_WAS_CANCELLED). Without that, this bug-fix claim is not strongly evidenced and the behavior can regress silently.
LLVM Coverage Report
Changed lines: 92.31% (12/13) · Uncovered code |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
This patch fixes an infinite loop in these queries during stress tests. Now, the system sync merges query will loop up to
receive_timeoutseconds and also respect cancellation.Version info
26.5.1.680