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

kvserver: fix merge queue test failure due to race #100378

Merged

Conversation

AlexTalks
Copy link
Contributor

Previously, we saw TestMergeQueueDoesNotInterruptReplicationChange fail on arm64 machines (#99349), which, after testing, was determined to be due to timing issues in the test. As such, this change modifies the test so as to not assume that the snapshot will start within the 100ms time frame used as a buffer, and will instead wait for the snapshot to start before attempting the merge.

Fixes: #99349

Release note: None

@AlexTalks AlexTalks requested a review from a team as a code owner April 1, 2023 03:59
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@AlexTalks AlexTalks force-pushed the fix_merge_queue_concurrency_test branch from 3165d60 to e6902d2 Compare April 1, 2023 05:53
Previously, we saw `TestMergeQueueDoesNotInterruptReplicationChange`
fail on arm64 machines (cockroachdb#99349), which, after testing, was determined to
be due to timing issues in the test. As such, this change modifies the
test so as to not assume that the snapshot will start within the 100ms
time frame used as a buffer, and will instead wait for the snapshot to
start before attempting the merge.

Fixes: cockroachdb#99349

Release note: None
@AlexTalks AlexTalks force-pushed the fix_merge_queue_concurrency_test branch from e6902d2 to 43b9a39 Compare April 3, 2023 17:59
@AlexTalks AlexTalks requested a review from kvoli April 3, 2023 18:40
@AlexTalks AlexTalks added the backport-23.1.x Flags PRs that need to be backported to 23.1 label Apr 3, 2023
Copy link
Collaborator

@kvoli kvoli left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @AlexTalks)

@AlexTalks
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Apr 3, 2023

Build succeeded:

@craig craig bot merged commit 8e9273c into cockroachdb:master Apr 3, 2023
@AlexTalks AlexTalks deleted the fix_merge_queue_concurrency_test branch April 3, 2023 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kv/kvserver: TestMergeQueueDoesNotInterruptReplicationChange failed
4 participants