Skip to content

Make 04661_refreshable_mv_cancel_during_planning robust on slow runners - #113960

Merged
alexey-milovidov merged 2 commits into
masterfrom
fix/04661-refreshable-mv-cancel-flaky
Aug 9, 2026
Merged

alexey-milovidov merged 2 commits into
masterfrom
fix/04661-refreshable-mv-cancel-flaky

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Aug 8, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • CI Fix or improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

...

Make 04661_refreshable_mv_cancel_during_planning robust on slow runners.

The test distinguishes "the drop cancelled the blocked refresh planning" from "the drop waited for the planning to finish" by racing a 10-second client timeout against a ~30-second sleepEachRow chain inside the refresh's planning stage. On a loaded sanitizer runner, 10 seconds is not always enough for a legitimately cancelled drop: the test failed once with drop did not finish on Stateless tests (amd_tsan, s3 storage, parallel, 3/3) and then passed 8/8 harness reruns with the same randomized settings.

This change widens both sides of the margin: the planning block now lasts ~120 seconds and the drop gets 60 seconds, keeping the discrimination (a drop that waits for the planning to finish cannot fit into the timeout) while tolerating scheduling delays. Verified locally: the modified test passes in ~5 seconds.

The test was introduced in #113188.

CI report with the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=113722&sha=9e401fcfde10f841ae373a205bc2b1630dd5a48e&name_0=PR

Related: #113722
Related: #113188

Version info

  • Backported to: 26.7.7.56, 26.6.5.83

The test distinguishes "the drop cancelled the blocked refresh planning"
from "the drop waited for the planning to finish" by racing a 10-second
client timeout against a ~30-second `sleepEachRow` chain inside the
refresh's planning stage. On a loaded sanitizer runner 10 seconds is not
enough for a legitimately cancelled drop: the test failed once with
"drop did not finish" on `Stateless tests (amd_tsan, s3 storage)` and
then passed 8/8 reruns with the same randomized settings.

Widen both sides of the margin: the planning block now lasts ~120 seconds
and the drop gets 60 seconds, keeping the discrimination (a drop that
waits for planning cannot fit in the timeout) while tolerating scheduling
delays.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=113722&sha=9e401fcfde10f841ae373a205bc2b1630dd5a48e&name_0=PR
Related PR: #113722

Co-Authored-By: Claude Fable 5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [dbf0f24]

Summary: ✅


AI Review

Summary

This PR widens the timing margin in 04661_refreshable_mv_cancel_during_planning so the test still distinguishes “DROP TABLE cancelled the blocked refresh planning” from “DROP TABLE waited for planning to finish” on slow runners. I reviewed the current shell test, the original bug-fix PR that introduced it, and the current PR discussion/CI state, and I did not find a correctness, cleanup, or coverage regression in the updated test.

Final Verdict

✅ No blocking issues found.

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.

@alexey-milovidov alexey-milovidov self-assigned this Aug 9, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Aug 9, 2026
Merged via the queue into master with commit 96f0c22 Aug 9, 2026
180 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix/04661-refreshable-mv-cancel-flaky branch August 9, 2026 19:57
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 9, 2026
@PedroTadim

Copy link
Copy Markdown
Member

@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Sep 8, 2026
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Sep 8, 2026
clickhouse-gh Bot pushed a commit that referenced this pull request Sep 8, 2026
clickhouse-gh Bot added a commit that referenced this pull request Sep 8, 2026
Backport #113960 to 26.6: Make `04661_refreshable_mv_cancel_during_planning` robust on slow runners
clickhouse-gh Bot pushed a commit that referenced this pull request Sep 8, 2026
clickhouse-gh Bot added a commit that referenced this pull request Sep 8, 2026
Backport #113960 to 26.7: Make `04661_refreshable_mv_cancel_during_planning` robust on slow runners
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-ci pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo v26.4-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants