MCPcopy Create free account
hub / github.com/apple/foundationdb / success

Method success

fdbserver/QuietDatabase.actor.cpp:731–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729 }
730
731 bool success() {
732 bool timedOut = now() - start > maxDDRunTime;
733 if (!failReasons.empty()) {
734 std::string traceMessage = fmt::format("QuietDatabase{}Fail", phase);
735 std::string reasons = fmt::format("{}", fmt::join(failReasons, ", "));
736 TraceEvent(timedOut ? SevError : SevWarnAlways, traceMessage.c_str())
737 .detail("Reasons", reasons)
738 .detail("FailedAfter", now() - start)
739 .detail("Timeout", maxDDRunTime);
740 if (timedOut) {
741 // this bool is just created to make the assertion more readable
742 bool ddGotStuck = true;
743 // This assertion is here to make the test fail more quickly. If quietDatabase takes this
744 // long without completing, we can assume that the test will eventually time out. However,
745 // time outs are more annoying to debug. This will hopefully be easier to track down.
746 ASSERT(!ddGotStuck || !g_network->isSimulated());
747 }
748 return false;
749 }
750 return true;
751 }
752 };
753
754 Impl startIteration(std::string const& phase) const {

Callers 5

waitAzureFutureFunction · 0.45
blobExistsMethod · 0.45
createMethod · 0.45
existsMethod · 0.45

Calls 8

nowFunction · 0.85
TraceEventClass · 0.85
detailMethod · 0.80
formatFunction · 0.50
joinFunction · 0.50
emptyMethod · 0.45
c_strMethod · 0.45
isSimulatedMethod · 0.45

Tested by

no test coverage detected