Commit 9913b68
Merge #158719
158719: kvserver: deflake TestRequestsOnLaggingReplica r=iskettaneh a=iskettaneh
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: None
Co-authored-by: iskettaneh <173953022+iskettaneh@users.noreply.github.com>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