[fdbserver][sim] Remove timeout reset in ClogTlog test (#11698)

This commit is contained in:
Syed Paymaan Raza 2024-10-02 17:30:58 -07:00 committed by GitHub
parent 91222bd9b1
commit ceec943300
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -129,16 +129,13 @@ struct ClogTlogWorkload : TestWorkload {
}
ACTOR static Future<Void> excludeFailedLog(ClogTlogWorkload* self, Database cx) {
state Future<Void> timeout = delay(30);
loop choose {
when(wait(self->dbInfo->onChange())) {
if (self->dbInfo->get().recoveryState >= RecoveryState::ACCEPTING_COMMITS) {
return Void();
}
timeout = delay(30);
}
when(wait(timeout)) {
when(wait(delay(30))) {
// recovery state hasn't changed in 30s, exclude the failed tlog
CODE_PROBE(true, "Exclude failed tlog");
TraceEvent("ExcludeFailedLog")