diff --git a/js/apps/system/_admin/aardvark/APP/aardvark.js b/js/apps/system/_admin/aardvark/APP/aardvark.js index 20a75ed87b..ef97f2db04 100644 --- a/js/apps/system/_admin/aardvark/APP/aardvark.js +++ b/js/apps/system/_admin/aardvark/APP/aardvark.js @@ -451,9 +451,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