mirror of https://gitee.com/bigwinds/arangodb
Fix shutting down of cluster; give a little more time.
This commit is contained in:
parent
495709f3a0
commit
37cdc7a379
|
@ -551,19 +551,18 @@ shutdownActions.startServers = function (dispatchers, cmd, run) {
|
||||||
// we cannot do much with the result...
|
// we cannot do much with the result...
|
||||||
}
|
}
|
||||||
|
|
||||||
var shutdownWait = 8;
|
var shutdownWait = 20;
|
||||||
if (cmd.valgrind !== '') {
|
if (cmd.valgrind !== '') {
|
||||||
shutdownWait *= 10000;
|
shutdownWait *= 10000;
|
||||||
}
|
}
|
||||||
console.info("Waiting " + shutdownWait + " seconds for servers to shutdown gracefully...");
|
console.info("Waiting up to " + shutdownWait + " seconds for servers to shutdown gracefully...");
|
||||||
var j = 0;
|
var j = 0;
|
||||||
var runpids = run.pids.length;
|
var runpids = run.pids.length;
|
||||||
while ((j < shutdownWait) && (runpids > 0)) {
|
while ((j < shutdownWait) && (runpids > 0)) {
|
||||||
wait(1);
|
wait(1);
|
||||||
j++;
|
j++;
|
||||||
for (i = 0; i < run.pids.length; i++) {
|
for (i = 0; i < run.pids.length; i++) {
|
||||||
|
if (serverStates[JSON.stringify(run.pids[i])] === undefined) {
|
||||||
if (serverStates[JSON.stringify(run.pids[i].pid)] === undefined) {
|
|
||||||
var s = statusExternal(run.pids[i]);
|
var s = statusExternal(run.pids[i]);
|
||||||
|
|
||||||
if ((s.status === "NOT-FOUND") ||
|
if ((s.status === "NOT-FOUND") ||
|
||||||
|
|
Loading…
Reference in New Issue