Skip to content

Commit

Permalink
Merge pull request #3668 from atlanhq/dg1875
Browse files Browse the repository at this point in the history
DG-1875 Fixed the check for ES<>Cassandra extra check
  • Loading branch information
hr2904 authored Oct 27, 2024
2 parents a80df77 + 2ed874e commit 15d4858
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3630,7 +3630,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 @@ -3907,7 +3907,7 @@ public void deleteClassifications(String entityGuid, List<AtlasClassification> c
}
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 15d4858

Please sign in to comment.