Correct a couple of comments in simulator and simulated workloads. (#8310)
This commit is contained in:
parent
45ef302af6
commit
df2c1374cb
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue