Commit 2af1a4c
committed
kvserver: deflake TestRequestsOnLaggingReplica
The test expects that when partitioning Node 1 (asymmetrically), and
when the leadership moves away to another node, that requests to the
partitioned node would return a speculative lease. However, it seems
possible to me that the node 1 might have not heard about the new
leader, and hence not return a speculative lease.
This commit waits (for asymmetric partition) for replica 1 to hear
about the new leader before continuing.
Fixes: #158698
Release note: None1 parent d85842e commit 2af1a4c
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
1089 | 1092 | | |
1090 | 1093 | | |
1091 | 1094 | | |
| |||
1219 | 1222 | | |
1220 | 1223 | | |
1221 | 1224 | | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
1222 | 1240 | | |
1223 | 1241 | | |
1224 | 1242 | | |
| |||
0 commit comments