mirror of https://gitee.com/bigwinds/arangodb
better status information on shutdown
This commit is contained in:
parent
2a416f2e33
commit
efa5e8faa3
|
@ -927,7 +927,19 @@ function shutdownInstance (instanceInfo, options, forceTerminate) {
|
|||
}
|
||||
});
|
||||
if (toShutdown.length > 0) {
|
||||
print(toShutdown.length + ' arangods ' + nonAgenciesCount + ' not agents are still running...');
|
||||
let roles = {};
|
||||
toShutdown.forEach(arangod => {
|
||||
if (!roles.hasOwnProperty(arangod.role)) {
|
||||
roles[arangod.role] = 0;
|
||||
}
|
||||
++roles[arangod.role];
|
||||
});
|
||||
let roleNames = [];
|
||||
for (let r in roles) {
|
||||
// e.g. 2 + coordinator + (s)
|
||||
roleNames.push(roles[r] + ' ' + r + '(s)');
|
||||
}
|
||||
print(roleNames.join(', ') + ' are still running...');
|
||||
require('internal').wait(1, false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue