Repository: atlas Updated Branches: refs/heads/branch-1.0 305854590 -> 5c0e00bbb
ATLAS-2834: Init authorizer when Atlas is in HA mode (cherry picked from commit 70e10cc049f82243be0a3ace452c19b42476af6c) Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/5c0e00bb Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/5c0e00bb Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/5c0e00bb Branch: refs/heads/branch-1.0 Commit: 5c0e00bbbdea50e715413d6134084d9ec00127ef Parents: 3058545 Author: apoorvnaik <apoorvn...@apache.org> Authored: Tue Jul 31 07:06:17 2018 -0700 Committer: apoorvnaik <apoorvn...@apache.org> Committed: Wed Aug 22 17:22:56 2018 -0700 ---------------------------------------------------------------------- .../store/bootstrap/AtlasTypeDefStoreInitializer.java | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/5c0e00bb/repository/src/main/java/org/apache/atlas/repository/store/bootstrap/AtlasTypeDefStoreInitializer.java ---------------------------------------------------------------------- diff --git a/repository/src/main/java/org/apache/atlas/repository/store/bootstrap/AtlasTypeDefStoreInitializer.java b/repository/src/main/java/org/apache/atlas/repository/store/bootstrap/AtlasTypeDefStoreInitializer.java index 5fa37d9..e2b33bd 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/bootstrap/AtlasTypeDefStoreInitializer.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/bootstrap/AtlasTypeDefStoreInitializer.java @@ -334,6 +334,12 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler { atlasTypeDefStore.init(); loadBootstrapTypeDefs(); + + try { + AtlasAuthorizerFactory.getAtlasAuthorizer(); + } catch (Throwable t) { + LOG.error("AtlasTypeDefStoreInitializer.instanceIsActive(): Unable to obtain AtlasAuthorizer", t); + } } catch (AtlasBaseException e) { LOG.error("Failed to init after becoming active", e); }