mirror of https://gitee.com/bigwinds/arangodb
Make testing.js more tolerant at shutdown (for high load).
This commit is contained in:
parent
6be0c909b6
commit
273c6328c7
|
@ -1258,7 +1258,7 @@ function shutdownInstance (instanceInfo, options) {
|
|||
let agentsKilled = false;
|
||||
let nrAgents = n - nonagencies.length;
|
||||
|
||||
let timeout = 60;
|
||||
let timeout = 666;
|
||||
if (options.valgrind) {
|
||||
timeout *= 10;
|
||||
}
|
||||
|
@ -1286,7 +1286,11 @@ function shutdownInstance (instanceInfo, options) {
|
|||
|
||||
if (arangod.exitStatus.status === 'RUNNING') {
|
||||
|
||||
if ((require('internal').time() - shutdownTime) > timeout) {
|
||||
let localTimeout = timeout;
|
||||
if (arangod.role === 'agent') {
|
||||
localTimeout = localTimeout + 60;
|
||||
}
|
||||
if ((require('internal').time() - shutdownTime) > localTimeout) {
|
||||
print('forcefully terminating ' + yaml.safeDump(arangod.pid) +
|
||||
' after ' + timeout + 's grace period; marking crashy.');
|
||||
serverCrashed = true;
|
||||
|
|
Loading…
Reference in New Issue