Skip to content

backup: fix flaky TestOnlineRestoreDistFlowSplitScatter#168294

Merged
trunk-io[bot] merged 1 commit intocockroachdb:masterfrom
dt:dt/fix-online-restore-distflow-test
Apr 15, 2026
Merged

backup: fix flaky TestOnlineRestoreDistFlowSplitScatter#168294
trunk-io[bot] merged 1 commit intocockroachdb:masterfrom
dt:dt/fix-online-restore-distflow-test

Conversation

@dt
Copy link
Copy Markdown
Contributor

@dt dt commented Apr 13, 2026

The test cleanup cancels a paused download job, but the job may still be in pause-requested state when CANCEL JOB is issued, which rejects it. Wrap the cancel in SucceedsSoon to retry until the job reaches a cancelable state.

Also add NewTestingKnobsWithShortIntervals to reduce the job adopt and cancel loop intervals from 30s/10s to 10ms, cutting the test from ~60s to ~2s.

Fixes #167692

Release note: None

The test cleanup cancels a paused download job, but the job may still
be in pause-requested state when CANCEL JOB is issued, which rejects
it. Wrap the cancel in SucceedsSoon to retry until the job reaches a
cancelable state.

Also add NewTestingKnobsWithShortIntervals to reduce the job adopt
and cancel loop intervals from 30s/10s to 10ms, cutting the test
from ~60s to ~2s.

Fixes cockroachdb#167692

Release note: None
@dt dt requested a review from kev-cao April 13, 2026 21:23
@dt dt requested a review from a team as a code owner April 13, 2026 21:23
@trunk-io
Copy link
Copy Markdown
Contributor

trunk-io Bot commented Apr 13, 2026

😎 Merged successfully - details.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@blathers-crl
Copy link
Copy Markdown

blathers-crl Bot commented Apr 13, 2026

Detected infrastructure failure (matched: self-hosted runner lost communication with the server). Automatically rerunning failed jobs. (run link)

@dt
Copy link
Copy Markdown
Contributor Author

dt commented Apr 15, 2026

TFTR!

/trunk merge

@trunk-io trunk-io Bot merged commit a299f8e into cockroachdb:master Apr 15, 2026
36 of 37 checks passed
@dt dt deleted the dt/fix-online-restore-distflow-test branch April 23, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

backup: TestOnlineRestoreDistFlowSplitScatter failed

3 participants