Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ private void downloadJSONArrayFromATS(String url, ZipOutputStream zos, String ta

//write downloaded part to zipfile. This is done to avoid any memory pressure when
// downloading and writing 1000s of tasks.
ZipEntry zipEntry = new ZipEntry("part-" + System.currentTimeMillis() + ".json");
String zipEntryName = "part-" + System.nanoTime() + ".json";
ZipEntry zipEntry = new ZipEntry(zipEntryName);
LOG.debug("Putting {} entities to a zip entry: {}", entities.length(), zipEntryName);
zos.putNextEntry(zipEntry);
JSONObject finalJson = new JSONObject();
finalJson.put(tag, entities);
Expand Down