Commit d2492997 by Ashutosh Mestry

ATLAS-3046: Part 2. Fixed inadvertent change to the format in which…

ATLAS-3046: Part 2. Fixed inadvertent change to the format in which classification type definitions are written to the file.
parent 9735643c
......@@ -325,7 +325,7 @@ public class BulkFetchAndUpdate {
try {
classificationDef.setGuid(null);
String json = AtlasType.toJson(classificationDef);
fileWriter.write(json);
fileWriter.write(json + "\n");
} catch (Exception e) {
LOG.error("Error writing classifications: {}", e);
displayCrLf("Error writing classifications.");
......@@ -534,6 +534,10 @@ public class BulkFetchAndUpdate {
LOG.error("{} skipped!", name, e);
displayCrLf(" [Skipped]", name);
updateClassification(classificationDef);
displayCrLf(" [Done!]");
} catch (Exception ex) {
LOG.error("{} skipped!", name, ex);
displayCrLf(" [Skipped]", name);
}
}
......@@ -547,6 +551,9 @@ public class BulkFetchAndUpdate {
} catch (AtlasServiceException e) {
LOG.error("{} skipped!", name, e);
displayCrLf(" [Skipped]", name);
} catch (Exception ex) {
LOG.error("{} skipped!", name, ex);
displayCrLf(" [Skipped]", name);
}
}
}
......
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