default retries to infinite
This commit is contained in:
parent
893e4c79f3
commit
28686b14f7
|
@ -47,7 +47,7 @@ struct IncrementalBackupWorkload : TestWorkload {
|
||||||
submitOnly = getOption(options, LiteralStringRef("submitOnly"), false);
|
submitOnly = getOption(options, LiteralStringRef("submitOnly"), false);
|
||||||
restoreOnly = getOption(options, LiteralStringRef("restoreOnly"), false);
|
restoreOnly = getOption(options, LiteralStringRef("restoreOnly"), false);
|
||||||
waitForBackup = getOption(options, LiteralStringRef("waitForBackup"), false);
|
waitForBackup = getOption(options, LiteralStringRef("waitForBackup"), false);
|
||||||
waitRetries = getOption(options, LiteralStringRef("waitRetries"), 20);
|
waitRetries = getOption(options, LiteralStringRef("waitRetries"), -1);
|
||||||
stopBackup = getOption(options, LiteralStringRef("stopBackup"), false);
|
stopBackup = getOption(options, LiteralStringRef("stopBackup"), false);
|
||||||
checkBeginVersion = getOption(options, LiteralStringRef("checkBeginVersion"), false);
|
checkBeginVersion = getOption(options, LiteralStringRef("checkBeginVersion"), false);
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,8 @@ struct IncrementalBackupWorkload : TestWorkload {
|
||||||
desc.contiguousLogEnd.present() ? desc.contiguousLogEnd.get() : invalidVersion)
|
desc.contiguousLogEnd.present() ? desc.contiguousLogEnd.get() : invalidVersion)
|
||||||
.detail("TargetVersion", v);
|
.detail("TargetVersion", v);
|
||||||
if (!desc.contiguousLogEnd.present()) continue;
|
if (!desc.contiguousLogEnd.present()) continue;
|
||||||
if (desc.contiguousLogEnd.get() >= v || tries > self->waitRetries) break;
|
if (desc.contiguousLogEnd.get() >= v) break;
|
||||||
|
if (self->waitRetries != -1 && tries > self->waitRetries) break;
|
||||||
// Avoid spamming requests with a delay
|
// Avoid spamming requests with a delay
|
||||||
wait(delay(5.0));
|
wait(delay(5.0));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue