Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
0adfa8f4
Commit
0adfa8f4
authored
7 years ago
by
nixonrodrigues
Committed by
Madhan Neethiraj
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2544: initialize Atlas Authorizer after type-store initialization
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
96a348a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
AtlasTypeDefStoreInitializer.java
...ository/store/bootstrap/AtlasTypeDefStoreInitializer.java
+8
-2
No files found.
repository/src/main/java/org/apache/atlas/repository/store/bootstrap/AtlasTypeDefStoreInitializer.java
View file @
0adfa8f4
...
@@ -24,6 +24,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize;
...
@@ -24,6 +24,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import
org.apache.atlas.AtlasErrorCode
;
import
org.apache.atlas.AtlasErrorCode
;
import
org.apache.atlas.AtlasException
;
import
org.apache.atlas.AtlasException
;
import
org.apache.atlas.authorize.AtlasAuthorizerFactory
;
import
org.apache.atlas.exception.AtlasBaseException
;
import
org.apache.atlas.exception.AtlasBaseException
;
import
org.apache.atlas.ha.HAConfiguration
;
import
org.apache.atlas.ha.HAConfiguration
;
import
org.apache.atlas.listener.ActiveStateChangeHandler
;
import
org.apache.atlas.listener.ActiveStateChangeHandler
;
...
@@ -94,6 +95,12 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler {
...
@@ -94,6 +95,12 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler {
if
(!
HAConfiguration
.
isHAEnabled
(
conf
)
||
isMigrationEnabled
)
{
if
(!
HAConfiguration
.
isHAEnabled
(
conf
)
||
isMigrationEnabled
)
{
atlasTypeDefStore
.
init
();
atlasTypeDefStore
.
init
();
loadBootstrapTypeDefs
();
loadBootstrapTypeDefs
();
try
{
AtlasAuthorizerFactory
.
getAtlasAuthorizer
();
}
catch
(
Throwable
t
)
{
LOG
.
error
(
"AtlasTypeDefStoreInitializer.init(): Unable to obtain AtlasAuthorizer"
,
t
);
}
}
else
{
}
else
{
LOG
.
info
(
"AtlasTypeDefStoreInitializer.init(): deferring type loading until instance activation"
);
LOG
.
info
(
"AtlasTypeDefStoreInitializer.init(): deferring type loading until instance activation"
);
}
}
...
@@ -753,4 +760,4 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler {
...
@@ -753,4 +760,4 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler {
}
}
}
}
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment