Commit ca44649
authored
This test computes the expected message by tracking the different kinds
of failures generated by a mock transport service. This tracking counts
consecutive failures so is reset on success, but it is not explicitly
reset when starting the second pass. This was usually fine since we
start the second pass with a long sequence of checks that do not fail
which would reset the tracking. Rarely however this sequence was too
short to contain any success responses, so the counters would not be
reset as needed.
This commit makes sure we run at least `leaderCheckRetryCount`
iterations without a failure to ensure that at least one of them
succeeds.
Closes #83857
Closes #83924
1 parent baa7180 commit ca44649
File tree
1 file changed
+3
-1
lines changed- server/src/test/java/org/elasticsearch/cluster/coordination
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
| |||
0 commit comments