Add debug info to investigate jenkins failure
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 @@
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, " "));
}