-
Notifications
You must be signed in to change notification settings - Fork 4.1k
kvserver: remove TestProcessSplitAfterRightHandSideHasBeenRemoved #159882
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: remove TestProcessSplitAfterRightHandSideHasBeenRemoved #159882
Conversation
6a5bfdc to
7270a51
Compare
7270a51 to
33b2af9
Compare
The test had a race condition between lease transfer verification and partition activation. After transferring the lease from n1 to n3, there was a window where n1 could re-acquire the lease before the partition was activated, causing the subsequent increment to hang waiting for a slow proposal on the now-partitioned n1. I spent a couple of hours trying to deflake this, but whenever you fix one thing, another springs up. This test is not maintainable, and is highly complex. The [split_pre_apply] tests cover this functionality. Testing it from "far away" does give some extra coverage, but at a steep price for maintainability, which we are not ready to pay, so the test is removed in this commit. [split_pre_apply]: https://github.com/tbg/cockroach/blob/7270a51a0430999661ed15320527ccc04d796a14/pkg/kv/kvserver/testdata/replica_lifecycle/split_pre_apply.txt Fixes (on 26.1) cockroachdb#159676 Fixes cockroachdb#158295.
33b2af9 to
e8f5a3f
Compare
arulajmani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
@arulajmani reviewed 1 file and all commit messages, and made 2 comments.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @tbg).
-- commits line 14 at r1:
This makes me smile!
|
Based on the specified backports for this PR, I applied new labels to the following linked issue(s). Please adjust the labels as needed to match the branches actually affected by the issue(s), including adding any known older branches. Issue #158295: branch-release-26.1. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
The test had a race condition between lease transfer verification and
partition activation. After transferring the lease from n1 to n3, there
was a window where n1 could re-acquire the lease before the partition
was activated, causing the subsequent increment to hang waiting for a
slow proposal on the now-partitioned n1.
I spent a couple of hours trying to deflake this, but whenever you fix
one thing, another springs up. This test is not maintainable, and is
highly complex.
The split_pre_apply tests cover this functionality. Testing it from "far
away" does give some extra coverage, but at a steep price for maintainability,
which we are not ready to pay, so the test is removed in this commit.
Fixes (on 26.1) #159676
Fixes #158295.