1
0
Fork 0

waitForCommit is new default behaviour of writes in agency

This commit is contained in:
Kaveh Vahedipour 2016-06-09 13:36:17 +02:00
parent 79d467daa9
commit a13de0044e
3 changed files with 2 additions and 3 deletions

View File

@ -153,7 +153,7 @@ HttpHandler::status_t RestAgencyHandler::handleWrite() {
} catch (std::exception const& e) {
LOG_TOPIC(WARN, Logger::AGENCY) << e.what();
}
std::this_thread::sleep_for(duration_t(1));
std::this_thread::sleep_for(duration_t(2));
if (max_index > 0) {
_agent->waitFor(max_index);
}

View File

@ -271,7 +271,7 @@ void Supervision::run() {
// make sense at all without other ArangoDB servers, we wait pretty
// long here before giving up:
if (!updateAgencyPrefix(1000, 1)) {
LOG_TOPIC(ERR, Logger::AGENCY)
LOG_TOPIC(DEBUG, Logger::AGENCY)
<< "Cannot get prefix from Agency. Stopping supervision for good.";
break;
}

View File

@ -355,7 +355,6 @@ function agencyTestSuite () {
leaderEndpoint = config.configuration.endpoints[config.leaderId].replace("tcp", "http");
break;
}
wait(0.05);
}
} else {
leaderEndpoint = agencyServers[0].replace("tcp", "http");