Skip to content

kvserver: fix flake in TestReplicaGCQueueDropReplicaDirect#51860

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
lunevalex:alexl/fix-replica-gc-queue
Jul 24, 2020
Merged

kvserver: fix flake in TestReplicaGCQueueDropReplicaDirect#51860
craig[bot] merged 1 commit intocockroachdb:masterfrom
lunevalex:alexl/fix-replica-gc-queue

Conversation

@lunevalex
Copy link
Copy Markdown

@lunevalex lunevalex commented Jul 23, 2020

Fixes #51263

A previous change that switched this test from multiTestContect to using TestCluster introduced a regression. The test did not properly wait/replicate the scratch range, so it sometimes failed. This change adds deterministic replication for the scrath range, which fixes this issue.

Release note: None

@lunevalex lunevalex requested a review from nvb July 23, 2020 19:12
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@nvb nvb left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for tracking this down!

@lunevalex
Copy link
Copy Markdown
Author

bors r+

@lunevalex lunevalex force-pushed the alexl/fix-replica-gc-queue branch from 9cc6550 to 3e99842 Compare July 23, 2020 20:50
@lunevalex
Copy link
Copy Markdown
Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 23, 2020

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 23, 2020

Build failed (retrying...):

@jordanlewis
Copy link
Copy Markdown
Member

bors r+

@lunevalex
Copy link
Copy Markdown
Author

bors retry

Fixes cockroachdb#51263

A previous change that switched this test from multiTestContect to using TestCluster introduced a regression. The test did not properly wait/replicate the scratch range, so it sometimes failed. This change adds deterministic replication for the scrath range, which fixes this issue.

Release note: None
@lunevalex lunevalex force-pushed the alexl/fix-replica-gc-queue branch from 3e99842 to 5e16dfb Compare July 24, 2020 17:41
@lunevalex
Copy link
Copy Markdown
Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 24, 2020

Build succeeded:

@craig craig bot merged commit 84e896f into cockroachdb:master Jul 24, 2020
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.

kv/kvserver: TestReplicaGCQueueDropReplicaDirect failed

4 participants