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

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


The following commit(s) were added to refs/heads/master by this push:
     new 0a5c7142c TEZ-4649: Java21 upgrade made TestAnalyzer#testWithATS flaky 
- change entry to nanotime precision (#431) (Laszlo Bodor reviewed by Ayush 
Saxena)
0a5c7142c is described below

commit 0a5c7142c8ac5dff0fe6b18358bdb9eb99e2a678
Author: Bodor Laszlo <bodorlaszlo0...@gmail.com>
AuthorDate: Wed Sep 17 14:46:41 2025 +0200

    TEZ-4649: Java21 upgrade made TestAnalyzer#testWithATS flaky - change entry 
to nanotime precision (#431) (Laszlo Bodor reviewed by Ayush Saxena)
---
 .../src/main/java/org/apache/tez/history/ATSImportTool.java           | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/tez-plugins/tez-history-parser/src/main/java/org/apache/tez/history/ATSImportTool.java
 
b/tez-plugins/tez-history-parser/src/main/java/org/apache/tez/history/ATSImportTool.java
index 48d61a7a7..94e044992 100644
--- 
a/tez-plugins/tez-history-parser/src/main/java/org/apache/tez/history/ATSImportTool.java
+++ 
b/tez-plugins/tez-history-parser/src/main/java/org/apache/tez/history/ATSImportTool.java
@@ -264,7 +264,9 @@ public class ATSImportTool extends Configured implements 
Tool {
 
       //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);

Reply via email to