Repository: atlas Updated Branches: refs/heads/master ea1b981e6 -> 48feaa352
ATLAS-2195: fix to close a graph transaction left open during Atlas startup Signed-off-by: Madhan Neethiraj <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/48feaa35 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/48feaa35 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/48feaa35 Branch: refs/heads/master Commit: 48feaa3529cdcc29434d6f769c0247cc7d2de7b1 Parents: ea1b981 Author: Ashutosh Mestry <[email protected]> Authored: Thu Oct 12 17:15:40 2017 -0700 Committer: Madhan Neethiraj <[email protected]> Committed: Thu Oct 12 17:15:50 2017 -0700 ---------------------------------------------------------------------- .../atlas/repository/store/graph/v1/AtlasTypeDefGraphStoreV1.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/48feaa35/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasTypeDefGraphStoreV1.java ---------------------------------------------------------------------- diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasTypeDefGraphStoreV1.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasTypeDefGraphStoreV1.java index 603516d..1a04418 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasTypeDefGraphStoreV1.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasTypeDefGraphStoreV1.java @@ -32,6 +32,7 @@ import java.util.Set; import java.util.UUID; import org.apache.atlas.AtlasErrorCode; import org.apache.atlas.RequestContextV1; +import org.apache.atlas.annotation.GraphTransaction; import org.apache.atlas.exception.AtlasBaseException; import org.apache.atlas.listener.TypeDefChangeListener; import org.apache.atlas.model.typedef.*; @@ -102,7 +103,7 @@ public class AtlasTypeDefGraphStoreV1 extends AtlasTypeDefGraphStore { @Override - @PostConstruct + @GraphTransaction public void init() throws AtlasBaseException { LOG.info("==> AtlasTypeDefGraphStoreV1.init()");
