Correct a couple of comments in simulator and simulated workloads. (#8310)

This commit is contained in:
Dan Adkins 2022-09-25 01:52:13 -04:00 committed by GitHub
parent 45ef302af6
commit df2c1374cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -453,8 +453,8 @@ public:
int listenersPerProcess;
// We won't kill machines in this set, but we might reboot
// them. This is a conservatie mechanism to prevent the
// simulator from killing off imporant processes and rendering
// them. This is a conservative mechanism to prevent the
// simulator from killing off important processes and rendering
// the cluster unrecoverable, e.g. a quorum of coordinators.
std::set<NetworkAddress> protectedAddresses;

View File

@ -102,11 +102,12 @@ struct RollbackWorkload : FailureInjectionWorkload {
wait(delay(self->clogDuration / 3));
system = self->dbInfo->get();
// Kill the proxy and clog the unclogged tlog
if (self->enableFailures) {
// Reboot the proxy and clog the unclogged tlog.
g_simulator->rebootProcess(g_simulator->getProcessByAddress(proxy.address()), ISimulator::Reboot);
g_simulator->clogInterface(uncloggedTLog.ip, self->clogDuration, ClogAll);
} else {
// Alternatively, if we're not injecting machine failures, clog the proxy and the unclogged tlog.
g_simulator->clogInterface(proxy.address().ip, self->clogDuration, ClogAll);
g_simulator->clogInterface(uncloggedTLog.ip, self->clogDuration, ClogAll);
}