Commit 70e10cc0 by apoorvnaik

ATLAS-2834: Init authorizer when Atlas is in HA mode

parent 35561d4e
...@@ -334,6 +334,12 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler { ...@@ -334,6 +334,12 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler {
atlasTypeDefStore.init(); atlasTypeDefStore.init();
loadBootstrapTypeDefs(); loadBootstrapTypeDefs();
try {
AtlasAuthorizerFactory.getAtlasAuthorizer();
} catch (Throwable t) {
LOG.error("AtlasTypeDefStoreInitializer.instanceIsActive(): Unable to obtain AtlasAuthorizer", t);
}
} catch (AtlasBaseException e) { } catch (AtlasBaseException e) {
LOG.error("Failed to init after becoming active", e); LOG.error("Failed to init after becoming active", e);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment