You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ni...@apache.org on 2019/02/12 13:34:04 UTC

[atlas] branch master updated: ATLAS-3046: Part 3. Updated case for handling deleted classifications.

This is an automated email from the ASF dual-hosted git repository.

nixon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new ef752a1  ATLAS-3046: Part 3. Updated case for handling deleted classifications.
ef752a1 is described below

commit ef752a1825a26cc9cf443489beca75ab2de88deb
Author: Ashutosh Mestry <am...@hortonworks.com>
AuthorDate: Mon Feb 11 23:35:11 2019 -0800

    ATLAS-3046: Part 3. Updated case for handling deleted classifications.
---
 .../src/main/java/org/apache/atlas/tools/BulkFetchAndUpdate.java    | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tools/classification-updater/src/main/java/org/apache/atlas/tools/BulkFetchAndUpdate.java b/tools/classification-updater/src/main/java/org/apache/atlas/tools/BulkFetchAndUpdate.java
index e1e1d75..91ff89a 100644
--- a/tools/classification-updater/src/main/java/org/apache/atlas/tools/BulkFetchAndUpdate.java
+++ b/tools/classification-updater/src/main/java/org/apache/atlas/tools/BulkFetchAndUpdate.java
@@ -386,12 +386,8 @@ public class BulkFetchAndUpdate {
                     continue;
                 }
 
-                header.setGuid(null);
-                if (header.getClassifications().size() == 0) {
-                    continue;
-                }
-
                 String key = String.format("%s:%s", header.getTypeName(), uniqueName);
+                header.setGuid(null);
                 boolean keyFound = uniqueNameEntityHeaderMap.containsKey(key);
                 if (!keyFound) {
                     uniqueNameEntityHeaderMap.put(key, header);