atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject incubator-atlas git commit: Add debug info to investigate jenkins failure
Date Fri, 02 Jun 2017 19:34:06 GMT
Repository: incubator-atlas
Updated Branches:
  refs/heads/master 4c9c3bb59 -> e19495ad2


Add debug info to investigate jenkins failure


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

Branch: refs/heads/master
Commit: e19495ad2743af1557395248a29be7c960af4059
Parents: 4c9c3bb
Author: Sarath Subramanian <ssubramanian@hortonworks.com>
Authored: Fri Jun 2 12:33:51 2017 -0700
Committer: Sarath Subramanian <ssubramanian@hortonworks.com>
Committed: Fri Jun 2 12:33:51 2017 -0700

----------------------------------------------------------------------
 .../org/apache/atlas/discovery/EntityDiscoveryService.java  | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/e19495ad/repository/src/main/java/org/apache/atlas/discovery/EntityDiscoveryService.java
----------------------------------------------------------------------
diff --git a/repository/src/main/java/org/apache/atlas/discovery/EntityDiscoveryService.java
b/repository/src/main/java/org/apache/atlas/discovery/EntityDiscoveryService.java
index 128cdbf..36b7f8c 100644
--- a/repository/src/main/java/org/apache/atlas/discovery/EntityDiscoveryService.java
+++ b/repository/src/main/java/org/apache/atlas/discovery/EntityDiscoveryService.java
@@ -437,6 +437,15 @@ public class EntityDiscoveryService implements AtlasDiscoveryService
{
         AtlasEntityType type            = typeRegistry.getEntityTypeByName(typeName);
         Set<String>     typeAndSubTypes = type != null ? type.getTypeAndAllSubTypes()
: null;
 
+        // adding debug info to investigate unit test failure in jenkins
+        // EntityDiscoveryServiceTest.getSubTypeForTypeWithSubTypes_ReturnsOrClause
+        if (StringUtils.isNotEmpty(typeName) && type != null) {
+            LOG.info("Getting type and subTypes for type name: {}, AtlasType: {}", typeName,
type.getEntityDef().toString());
+            LOG.info("Type and subTypes list: {}", StringUtils.join(typeAndSubTypes, " "));
+            LOG.info("Maximum Types Count: {}", maxTypesCountInIdxQuery);
+        }
+
+
         if(CollectionUtils.isNotEmpty(typeAndSubTypes) && typeAndSubTypes.size()
<= maxTypesCountInIdxQuery) {
             return String.format("(%s)", StringUtils.join(typeAndSubTypes, " "));
         }


Mime
View raw message