Commit e19495ad by Sarath Subramanian

Add debug info to investigate jenkins failure

parent 4c9c3bb5
...@@ -437,6 +437,15 @@ public class EntityDiscoveryService implements AtlasDiscoveryService { ...@@ -437,6 +437,15 @@ public class EntityDiscoveryService implements AtlasDiscoveryService {
AtlasEntityType type = typeRegistry.getEntityTypeByName(typeName); AtlasEntityType type = typeRegistry.getEntityTypeByName(typeName);
Set<String> typeAndSubTypes = type != null ? type.getTypeAndAllSubTypes() : null; 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) { if(CollectionUtils.isNotEmpty(typeAndSubTypes) && typeAndSubTypes.size() <= maxTypesCountInIdxQuery) {
return String.format("(%s)", StringUtils.join(typeAndSubTypes, " ")); return String.format("(%s)", StringUtils.join(typeAndSubTypes, " "));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment