Skip to content

Commit

Permalink
Fixed the check for ES<>Cassandra extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
hr2904 committed Oct 27, 2024
1 parent d4e3492 commit 2ed874e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3570,7 +3570,7 @@ public void deleteClassification(String entityGuid, String classificationName) t
// Get in progress task to see if there already is a propagation for this particular vertex
List<AtlasTask> inProgressTasks = taskManagement.getInProgressTasks();
for (AtlasTask task : inProgressTasks) {
if (isTaskMatchingWithVertexIdAndEntityGuid(task, classificationVertex.getIdForDisplay(), entityGuid)) {
if (IN_PROGRESS.equals(task.getStatus()) && isTaskMatchingWithVertexIdAndEntityGuid(task, classificationVertex.getIdForDisplay(), entityGuid)) {
throw new AtlasBaseException(AtlasErrorCode.CLASSIFICATION_CURRENTLY_BEING_PROPAGATED, classificationName);
}
}
Expand Down Expand Up @@ -3670,7 +3670,7 @@ public void deleteClassification(String entityGuid, String classificationName) t

private boolean isTaskMatchingWithVertexIdAndEntityGuid(AtlasTask task, String classificationVertexId, String entityGuid) {
try {
if (CLASSIFICATION_PROPAGATION_ADD.equals(task.getType()) && IN_PROGRESS.equals(task.getStatus())) {
if (CLASSIFICATION_PROPAGATION_ADD.equals(task.getType())) {
return task.getParameters().get(ClassificationTask.PARAM_CLASSIFICATION_VERTEX_ID).equals(classificationVertexId)
&& task.getParameters().get(ClassificationTask.PARAM_ENTITY_GUID).equals(entityGuid);
}
Expand Down

0 comments on commit 2ed874e

Please sign in to comment.