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: deflake and unskip split race uninit rhs #98715

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

kvoli
Copy link
Collaborator

@kvoli kvoli commented Mar 15, 2023

TestStoreRangeSplitRaceUninitializedRHS was skipped some time ago, in mid 2021 (#67082). The test was skipped due to flakes that appeared related to untimely test cluster startup.

This commit unskips the test and makes minor adjustments in order to be current with semantics of Raft transport. Without these adjustments, the MsgVote sent every microsecond with the intention of triggering a race, would completely fill up the Raft transport send queue. Once the queue was full, the test would fail as requests are dropped.

This commit updates the MsgVote send loop logic to not require every MsgVote request to be sent for the test to succeed.

Resolves: #66480

Release note: None

`TestStoreRangeSplitRaceUninitializedRHS` was skipped some time ago, in
mid 2021 (cockroachdb#67082). The test was skipped due to flakes that appeared
related to untimely test cluster startup.

This commit unskips the test and makes minor adjustments in order to be
current with semantics of Raft transport. Without these adjustments, the
`MsgVote` sent every microsecond with the intention of triggering a
race, would completely fill up  the Raft transport send queue. Once the
queue was full, the test would fail as requests are dropped.

This commit updates the `MsgVote` send loop logic to not require every
`MsgVote` request to be sent for the test to succeed.

Resolves: cockroachdb#66480

Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@kvoli kvoli marked this pull request as ready for review March 15, 2023 23:45
@kvoli kvoli requested a review from a team as a code owner March 15, 2023 23:45
Copy link
Member

@nvanbenschoten nvanbenschoten 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 @kvoli)

@kvoli
Copy link
Collaborator Author

kvoli commented Mar 16, 2023

bors r=nvanbenschoten

@craig
Copy link
Contributor

craig bot commented Mar 16, 2023

Build succeeded:

@craig craig bot merged commit 81a9f1d into cockroachdb:master Mar 16, 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.

kv/kvserver: TestStoreRangeSplitRaceUninitializedRHS failed
3 participants