Skip to content

[CORE-15767] rptest: retry on exception for all_partitions_scrubbed#29837

Merged
dotnwat merged 1 commit intoredpanda-data:devfrom
WillemKauf:retry_scrubber
Mar 19, 2026
Merged

[CORE-15767] rptest: retry on exception for all_partitions_scrubbed#29837
dotnwat merged 1 commit intoredpanda-data:devfrom
WillemKauf:retry_scrubber

Conversation

@WillemKauf
Copy link
Copy Markdown
Contributor

The all_partitions_scrubbed() check in _post_test_anomaly_check calls get_cloud_storage_anomalies(), which can raise a 404 error when racing with a partition move. This is a transient failure.

Pass retry_on_exc=True so the scrub check retries on transient errors instead of immediately failing the test.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v25.3.x
  • v25.2.x
  • v25.1.x

Release Notes

  • none

The `all_partitions_scrubbed()` check in `_post_test_anomaly_check` calls
`get_cloud_storage_anomalies()`, which can raise a 404 error when racing
with a partition move. This is a transient failure.

Pass `retry_on_exc=True` so the scrub check retries on transient errors
instead of immediately failing the test.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves rptest post-test internal scrub validation robustness by retrying the all_partitions_scrubbed() polling loop when transient exceptions occur during cloud-storage anomaly queries (e.g., HTTP 404 races during partition movement).

Changes:

  • Pass retry_on_exc=True to the wait_until() call that waits for all partitions to be scrubbed.
  • Reformat the wait_until() invocation for readability while adding the new parameter.

Comment thread tests/rptest/services/redpanda.py
@dotnwat dotnwat merged commit 3db50f8 into redpanda-data:dev Mar 19, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants