mirror of https://gitee.com/bigwinds/arangodb
Add catch when propagateSelfHeal (#2839)
This commit is contained in:
parent
59f75c1c3f
commit
3a59ea553b
|
@ -383,11 +383,15 @@ function reloadRouting () {
|
|||
}
|
||||
|
||||
function propagateSelfHeal () {
|
||||
parallelClusterRequests(function * () {
|
||||
for (const coordId of getPeerCoordinatorIds()) {
|
||||
yield [coordId, 'POST', '/_api/foxx/_local/heal'];
|
||||
}
|
||||
}());
|
||||
try {
|
||||
parallelClusterRequests(function * () {
|
||||
for (const coordId of getPeerCoordinatorIds()) {
|
||||
yield [coordId, 'POST', '/_api/foxx/_local/heal'];
|
||||
}
|
||||
}());
|
||||
} catch (e) {
|
||||
console.errorStack(e, 'Failure during propagate self heal');
|
||||
}
|
||||
reloadRouting();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue