You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ap...@apache.org on 2018/08/23 00:21:46 UTC
atlas git commit: ATLAS-2834: Init authorizer when Atlas is in HA mode
Repository: atlas
Updated Branches:
refs/heads/master 35561d4ec -> 70e10cc04
ATLAS-2834: Init authorizer when Atlas is in HA mode
Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/70e10cc0
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/70e10cc0
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/70e10cc0
Branch: refs/heads/master
Commit: 70e10cc049f82243be0a3ace452c19b42476af6c
Parents: 35561d4
Author: apoorvnaik <ap...@apache.org>
Authored: Tue Jul 31 07:06:17 2018 -0700
Committer: apoorvnaik <ap...@apache.org>
Committed: Wed Aug 22 17:21:43 2018 -0700
----------------------------------------------------------------------
.../store/bootstrap/AtlasTypeDefStoreInitializer.java | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/atlas/blob/70e10cc0/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);
}