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; break;
} else if (estimatedBytes[j] < 0 && } else if (estimatedBytes[j] < 0 &&
(g_network->isSimulated() || !storageServerInterfaces[j].isTss())) { ((g_network->isSimulated() &&
self->testFailure("Could not get storage metrics from server"); 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; hasValidEstimate = false;
break; break;
} }