Commit 331812e
committed
kvserver: remove TestProcessSplitAfterRightHandSideHasBeenRemoved
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) #159676
Fixes #158295.1 parent 48d36a5 commit 331812e
File tree
2 files changed
+1
-561
lines changed- pkg/kv/kvserver
2 files changed
+1
-561
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | | - | |
| 295 | + | |
297 | 296 | | |
298 | 297 | | |
299 | 298 | | |
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | 302 | | |
310 | 303 | | |
311 | 304 | | |
312 | 305 | | |
313 | 306 | | |
314 | 307 | | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | 308 | | |
334 | 309 | | |
335 | 310 | | |
| |||
0 commit comments