From 4a2bb9716acea8e7222dce87815b86b2f078a2bf Mon Sep 17 00:00:00 2001 From: Andreas Streichardt Date: Wed, 8 Feb 2017 16:18:20 +0100 Subject: [PATCH] Do not start up if replication failed --- js/server/bootstrap/coordinator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/server/bootstrap/coordinator.js b/js/server/bootstrap/coordinator.js index 79076ee7c5..2d315407d2 100644 --- a/js/server/bootstrap/coordinator.js +++ b/js/server/bootstrap/coordinator.js @@ -55,7 +55,7 @@ var colls = db._collections(); colls = colls.filter(c => c.name()[0] === '_'); if (!require('@arangodb/cluster').waitForSyncRepl('_system', colls)) { - console.error('System collections not properly set up. Starting anyway now...'); + throw new Error('System collections not properly set up. Refusing startup!'); } else { global.ArangoAgency.set('SystemCollectionsCreated', true); }