diff --git a/js/apps/system/_admin/aardvark/APP/aardvark.js b/js/apps/system/_admin/aardvark/APP/aardvark.js index 64200313b9..750e99011c 100644 --- a/js/apps/system/_admin/aardvark/APP/aardvark.js +++ b/js/apps/system/_admin/aardvark/APP/aardvark.js @@ -447,9 +447,13 @@ authRouter.get('/replication/mode', function (req, res) { let mode = 0; let role = null; // active failover - if (endpoints.statusCode === 200 && endpoints.json.endpoints.length) { + if (endpoints.statusCode === 200) { mode = 3; role = 'leader'; + } else if (endpoints.statusCode === 503) { + // 503 will be returned in case there is a leadership challenge ongoing + mode = 3; + // role unknown } else { // check if global applier (ga) is running // if that is true, this node is replicating from another arangodb instance