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

2018-08-22 Thread apoorvnaik
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 
Authored: Tue Jul 31 07:06:17 2018 -0700
Committer: apoorvnaik 
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);
 }



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

2018-08-22 Thread apoorvnaik
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 
Authored: Tue Jul 31 07:06:17 2018 -0700
Committer: apoorvnaik 
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);
 }