Commit e7eaa996 by ashutoshm Committed by Madhan Neethiraj

ATLAS-1583: fix incorrect metrics by import API

parent 2904f4c4
......@@ -186,6 +186,10 @@ public class AtlasEntityStoreV1 implements AtlasEntityStore {
}
for (AtlasEntityHeader h : list) {
if(processedGuids.contains(h.getGuid())) {
continue;
}
processedGuids.add(h.getGuid());
importResult.incrementMeticsCounter(String.format(prefix, h.getTypeName()));
}
......
......@@ -139,6 +139,6 @@ public class ImportService {
this.entityStore.bulkImport(importSource, result);
endTimestamp = System.currentTimeMillis();
result.incrementMeticsCounter("Duration", (int) (this.endTimestamp - this.startTimestamp));
result.incrementMeticsCounter("duration", (int) (this.endTimestamp - this.startTimestamp));
}
}
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