Verify that cluster is fully recovered in quietDatabase check (#5807)

* Verify that cluster is fully recovered in quietDatabase check

* Add trace event to waitForQuietDatabase
This commit is contained in:
Trevor Clinkenbeard 2021-10-21 09:01:52 -07:00 committed by GitHub
parent 0cf829ef91
commit c69364d5aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -638,6 +638,11 @@ ACTOR Future<Void> waitForQuietDatabase(Database cx,
if (g_network->isSimulated())
wait(delay(5.0));
TraceEvent("QuietDatabaseWaitingOnFullRecovery").log();
while (dbInfo->get().recoveryState != RecoveryState::FULLY_RECOVERED) {
wait(dbInfo->onChange());
}
// The quiet database check (which runs at the end of every test) will always time out due to active data movement.
// To get around this, quiet Database will disable the perpetual wiggle in the setup phase.