From 3a59ea553bd4481ea67ff5b9224c7d00756d3ae0 Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 19 Jul 2017 17:03:52 +0200 Subject: [PATCH] Add catch when propagateSelfHeal (#2839) --- js/server/modules/@arangodb/foxx/manager.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/js/server/modules/@arangodb/foxx/manager.js b/js/server/modules/@arangodb/foxx/manager.js index 6ed1e26beb..025b24b9d7 100644 --- a/js/server/modules/@arangodb/foxx/manager.js +++ b/js/server/modules/@arangodb/foxx/manager.js @@ -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(); }