Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backupccl: fix flaky TestExcludeDataFromBackupAndRestore #95528

Merged
merged 1 commit into from
Jan 21, 2023

Conversation

adityamaru
Copy link
Contributor

We don't need to wait for the table to split, inspecting the state of the leaseholders replica is adequate and a more correct source of truth to rely on.

In some cases the test would not wait for data.bar to split into its own range and so it would incorrectly be excluded from the backup resulting in 0 rows instead of 10 in the final assertion.

Fixes: #95350

Release note: None

We don't need to wait for the table to split, inspecting the
state of the leaseholders replica is adequate and a more correct
source of truth to rely on.

In some cases the test would not wait for `data.bar` to split into
its own range and so it would incorrectly be excluded from the backup
resulting in 0 rows instead of 10 in the final assertion.

Fixes: cockroachdb#95350

Release note: None
@adityamaru adityamaru requested a review from msbutler January 19, 2023 18:24
@adityamaru adityamaru requested a review from a team as a code owner January 19, 2023 18:24
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@adityamaru
Copy link
Contributor Author

bors r=msbutler

@craig
Copy link
Contributor

craig bot commented Jan 20, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jan 20, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jan 21, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jan 21, 2023

Build succeeded:

@craig craig bot merged commit 1982295 into cockroachdb:master Jan 21, 2023
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.

backupccl: TestExcludeDataFromBackupAndRestore is flaky
3 participants