Repair Dead Data Center Outside Quiet Database (#8359)
* fix snap test * repair dead data center
This commit is contained in:
parent
1f87286424
commit
90ce4053f4
|
@ -50,6 +50,10 @@ Future<WorkerInterface> getMasterWorker(Database const& cx, Reference<AsyncVar<S
|
|||
Future<Void> repairDeadDatacenter(Database const& cx,
|
||||
Reference<AsyncVar<ServerDBInfo> const> const& dbInfo,
|
||||
std::string const& context);
|
||||
Future<Void> reconfigureAfter(Database const& cx,
|
||||
double const& time,
|
||||
Reference<AsyncVar<ServerDBInfo> const> const& dbInfo,
|
||||
std::string const& context);
|
||||
|
||||
// Returns list of worker interfaces for available storage servers and the number of unavailable
|
||||
// storage servers
|
||||
|
|
|
@ -1727,6 +1727,11 @@ ACTOR Future<Void> runTests(Reference<AsyncVar<Optional<struct ClusterController
|
|||
}
|
||||
|
||||
state Future<Void> disabler = disableConnectionFailuresAfter(FLOW_KNOBS->SIM_SPEEDUP_AFTER_SECONDS, "Tester");
|
||||
state Future<Void> repairDataCenter;
|
||||
if (useDB) {
|
||||
Future<Void> reconfigure = reconfigureAfter(cx, FLOW_KNOBS->SIM_SPEEDUP_AFTER_SECONDS, dbInfo, "Tester");
|
||||
repairDataCenter = reconfigure;
|
||||
}
|
||||
|
||||
// Change the configuration (and/or create the database) if necessary
|
||||
printf("startingConfiguration:%s start\n", startingConfiguration.toString().c_str());
|
||||
|
|
|
@ -120,6 +120,7 @@ public: // ctor & dtor
|
|||
restartInfoLocation = getOption(options, "restartInfoLocation"_sr, "simfdb/restartInfo.ini"_sr).toString();
|
||||
skipCheck = false;
|
||||
retryLimit = getOption(options, "retryLimit"_sr, 5);
|
||||
g_simulator->allowLogSetKills = false;
|
||||
}
|
||||
|
||||
public: // workload functions
|
||||
|
|
Loading…
Reference in New Issue