mirror of https://gitee.com/bigwinds/arangodb
Have twice seen coordinator go into long loop on shutdown. Added two tests for isStopping() to break the loops. (#4138)
This commit is contained in:
parent
f8acbd9fae
commit
cb56f0acf1
|
@ -1456,8 +1456,8 @@ AgencyCommResult AgencyComm::sendWithFailover(
|
|||
continue;
|
||||
}
|
||||
|
||||
// got a result, we are done
|
||||
if (result.successful()) {
|
||||
// got a result or shutdown, we are done
|
||||
if (result.successful() || application_features::ApplicationServer::isStopping()) {
|
||||
AgencyCommManager::MANAGER->release(std::move(connection), endpoint);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1693,7 +1693,7 @@ int ClusterInfo::ensureIndexCoordinator(
|
|||
int errorCode = ensureIndexCoordinatorWithoutRollback(
|
||||
databaseName, collectionID, idString, slice, create, compare, resultBuilder, errorMsg, timeout);
|
||||
|
||||
if (errorCode == TRI_ERROR_NO_ERROR) {
|
||||
if (errorCode == TRI_ERROR_NO_ERROR || application_features::ApplicationServer::isStopping()) {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue