Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ public String toString() {
leaderChecker.updateLeader(leader2);
{
checkCount.set(0);
final long maxCheckCount = randomLongBetween(2, 1000);
// run at least leaderCheckRetryCount iterations to ensure at least one success so that we reset the counters and clear out
// anything left over from the previous run
final long maxCheckCount = randomLongBetween(leaderCheckRetryCount, 1000);
logger.info("--> checking again that no failure is detected in {} checks", maxCheckCount);
while (checkCount.get() < maxCheckCount) {
deterministicTaskQueue.runAllRunnableTasks();
Expand Down