Skip to content

Fix flaky test_inserts_and_moves[rmt_volume] in test_ttl_move#97243

Merged
alexey-milovidov merged 1 commit intomasterfrom
fix-test-ttl-move-flaky
Feb 18, 2026
Merged

Fix flaky test_inserts_and_moves[rmt_volume] in test_ttl_move#97243
alexey-milovidov merged 1 commit intomasterfrom
fix-test-ttl-move-flaky

Conversation

@alexey-milovidov
Copy link
Copy Markdown
Member

Summary

  • Fixed a bug in wait_if_moving_then_assert_disks where continue skipped time.sleep when active moves were detected, rapidly exhausting retries without actually waiting
  • Increased the default timeout from 10 to 30 seconds to provide more headroom for ReplicatedMergeTree background moves under CI load

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=b25e7f1fad41dd3316e717098fb5f9f1a9a52397&name_0=MasterCI&name_1=Integration%20tests%20%28amd_binary%2C%202%2F5%29

Test plan

  • Verified the logic change is correct: always sleep between retries, check both conditions together
  • CI passes with the fix

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 into CHANGELOG.md):

...

🤖 Generated with Claude Code

The `wait_if_moving_then_assert_disks` helper had a bug: when active
moves were detected (`moves > 0`), the `continue` statement skipped
`time.sleep`, rapidly exhausting all retries without actually waiting.
This caused the function to run out of retries before moves completed,
especially for ReplicatedMergeTree where background moves take longer.

Fixed by always sleeping between retries and increasing the default
timeout from 10 to 30 seconds.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=b25e7f1fad41dd3316e717098fb5f9f1a9a52397&name_0=MasterCI&name_1=Integration%20tests%20%28amd_binary%2C%202%2F5%29

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh Bot commented Feb 18, 2026

Workflow [PR], commit [c2fdb02]

Summary:

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Feb 18, 2026
@alexey-milovidov alexey-milovidov merged commit d8f6724 into master Feb 18, 2026
146 of 147 checks passed
@alexey-milovidov alexey-milovidov deleted the fix-test-ttl-move-flaky branch February 18, 2026 08:37
@alexey-milovidov alexey-milovidov self-assigned this Feb 18, 2026
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants