Skip to content
Permalink
Browse files
ATLAS-4549: Issue with brining up Atlas in HA enabled mode with Index…
… recovery enabled

Signed-off-by: radhikakundam <radhikakundam@apache.org>
  • Loading branch information
Radhika Kundam authored and radhikakundam committed Mar 8, 2022
1 parent f12b0cd commit 6dad2f6f35c97cb3fee82c5aee7aa932325e688a
Showing 1 changed file with 12 additions and 2 deletions.
@@ -123,7 +123,11 @@ public void instanceIsActive() throws AtlasException {

@Override
public void instanceIsPassive() throws AtlasException {
LOG.info("IndexRecoveryService.instanceIsPassive(): no action needed.");
LOG.info("==> IndexRecoveryService.instanceIsPassive()");

stop();

LOG.info("<== IndexRecoveryService.instanceIsPassive()");
}

@Override
@@ -138,7 +142,13 @@ private void startTxLogMonitoring() {
return;
}

indexHealthMonitor.start();
try {
if (indexHealthMonitor.getState() == Thread.State.NEW) {
indexHealthMonitor.start();
}
} catch (Exception ex) {
LOG.error("Error while starting Index Health Monitor", ex);
}
}

private static class RecoveryThread implements Runnable {

0 comments on commit 6dad2f6

Please sign in to comment.