This is an automated email from the ASF dual-hosted git repository.
sarath pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 4feaae5 ATLAS-3405: Handling of references to non-existing entities
in notifications #2 update isEntityIncomplete()
4feaae5 is described below
commit 4feaae5e35749eed909f4698516a878a95b7facd
Author: Sarath Subramanian <[email protected]>
AuthorDate: Mon Sep 9 10:33:57 2019 -0700
ATLAS-3405: Handling of references to non-existing entities in
notifications #2 update isEntityIncomplete()
(cherry picked from commit b823084aadd870f8f14df8f01838fac8347e72bb)
---
.../src/main/java/org/apache/atlas/repository/graph/GraphHelper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java
b/repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java
index ebf5498..3cc91a5 100755
---
a/repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java
+++
b/repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java
@@ -1060,7 +1060,7 @@ public final class GraphHelper {
public static Boolean isEntityIncomplete(AtlasElement element) {
Integer value =
element.getProperty(Constants.IS_INCOMPLETE_PROPERTY_KEY, Integer.class);
- Boolean ret = (value != null && value == INCOMPLETE_ENTITY_VALUE) ?
Boolean.TRUE : Boolean.FALSE;
+ Boolean ret = value != null && value.equals(INCOMPLETE_ENTITY_VALUE)
? Boolean.TRUE : Boolean.FALSE;
return ret;
}