Commit 6fbda5bc by Ashutosh Mestry Committed by nixonrodrigues

ATLAS-3381: Addressed ConcurrentPatchProcessor not calling commit.

parent b96ce272
......@@ -222,6 +222,7 @@ public abstract class ConcurrentPatchProcessor {
try {
individualItemProcessor.processVertexItem(vertexId, vertex, typeName, entityType);
doCommit();
} catch (AtlasBaseException e) {
LOG.error("Error processing: {}", vertexId, e);
}
......
......@@ -1697,12 +1697,13 @@ public class EntityGraphMapper {
}
public void updateClassificationTextAndNames(AtlasVertex vertex) throws AtlasBaseException {
String guid = GraphHelper.getGuid(vertex);
AtlasEntity entity = instanceConverter.getAndCacheEntity(guid);
if (CollectionUtils.isEmpty(entity.getClassifications())) return;
if (StringUtils.isEmpty(vertex.getProperty(CLASSIFICATION_NAMES_KEY, String.class))) {
return;
}
List<String> classificationNames = new ArrayList<>();
String guid = GraphHelper.getGuid(vertex);
AtlasEntity entity = instanceConverter.getAndCacheEntity(guid);
List<String> classificationNames = new ArrayList<>();
List<String> propagatedClassificationNames = new ArrayList<>();
for (AtlasClassification classification : entity.getClassifications()) {
......
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