Commit 433a165
Merge #153723
153723: kvserver: deflake TestClosedTimestampFrozenAfterSubsumption r=iskettaneh a=iskettaneh
This commit deflakes TestClosedTimestampFrozenAfterSubsumption by making sure
that when running with leader leases, we first make sure that the leader is
fortified before stopping storeliveness heartbeats.
Otherwise, there could be a case where the leader hasn't been fortified yet, and
blocking storeliveness heartbeats won't necessarily cause the leader to step down
as the leader will be sending normal raft heartbeats since it never got fortified
for this term.
Fixes: #153679
Release note: None
Co-authored-by: Ibrahim Kettaneh <ibrahim.kettaneh@cockroachlabs.com>File tree
2 files changed
+15
-2
lines changed- pkg
- kv/kvserver
- testutils/testcluster
2 files changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
628 | | - | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
629 | 632 | | |
630 | 633 | | |
631 | 634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
| 1270 | + | |
1270 | 1271 | | |
1271 | 1272 | | |
1272 | 1273 | | |
| |||
1380 | 1381 | | |
1381 | 1382 | | |
1382 | 1383 | | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
1383 | 1392 | | |
1384 | 1393 | | |
| 1394 | + | |
1385 | 1395 | | |
1386 | 1396 | | |
1387 | 1397 | | |
| |||
0 commit comments