atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apoorvn...@apache.org
Subject atlas git commit: ATLAS-2211: Dangling transaction issue within GraphBackedMetadataRepository
Date Fri, 13 Oct 2017 20:32:10 GMT
Repository: atlas
Updated Branches:
  refs/heads/branch-0.8 59fe7d56e -> 816c9c72d


ATLAS-2211: Dangling transaction issue within GraphBackedMetadataRepository


Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/816c9c72
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/816c9c72
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/816c9c72

Branch: refs/heads/branch-0.8
Commit: 816c9c72dda4521a638b889ede7c3e04f0c598a4
Parents: 59fe7d5
Author: apoorvnaik <apoorvnaik@apache.org>
Authored: Fri Oct 13 13:32:02 2017 -0700
Committer: apoorvnaik <apoorvnaik@apache.org>
Committed: Fri Oct 13 13:32:02 2017 -0700

----------------------------------------------------------------------
 .../atlas/repository/graph/GraphBackedMetadataRepository.java      | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/816c9c72/repository/src/main/java/org/apache/atlas/repository/graph/GraphBackedMetadataRepository.java
----------------------------------------------------------------------
diff --git a/repository/src/main/java/org/apache/atlas/repository/graph/GraphBackedMetadataRepository.java
b/repository/src/main/java/org/apache/atlas/repository/graph/GraphBackedMetadataRepository.java
index 568f6b0..74886b5 100755
--- a/repository/src/main/java/org/apache/atlas/repository/graph/GraphBackedMetadataRepository.java
+++ b/repository/src/main/java/org/apache/atlas/repository/graph/GraphBackedMetadataRepository.java
@@ -106,6 +106,7 @@ public class GraphBackedMetadataRepository implements MetadataRepository
{
     public String getIdAttributeName() {
         return Constants.GUID_PROPERTY_KEY;
     }
+
     @Override
     public String getVersionAttributeName() {
         return Constants.VERSION_PROPERTY_KEY;
@@ -159,6 +160,7 @@ public class GraphBackedMetadataRepository implements MetadataRepository
{
     }
 
     @Override
+    @GraphTransaction
     public ITypedReferenceableInstance getEntityDefinition(String guid) throws RepositoryException,
EntityNotFoundException {
         return getEntityDefinitions(guid).get(0);
     }


Mime
View raw message