Allow TSS failures in consistency check when fault injection is enabled

This commit is contained in:
Josh Slocum 2022-04-29 13:24:00 -05:00
parent c8b1662ab7
commit 7d94b0b442
1 changed files with 4 additions and 2 deletions

View File

@ -1625,8 +1625,10 @@ struct ConsistencyCheckWorkload : TestWorkload {
break;
} else if (estimatedBytes[j] < 0 &&
(g_network->isSimulated() || !storageServerInterfaces[j].isTss())) {
self->testFailure("Could not get storage metrics from server");
((g_network->isSimulated() &&
g_simulator.tssMode <= ISimulator::TSSMode::EnabledNormal) ||
!storageServerInterfaces[j].isTss())) {
// Ignore a non-responding TSS outside of simulation, or if tss fault injection is enabled
hasValidEstimate = false;
break;
}