kasakrisz commented on code in PR #3430:
URL: https://github.com/apache/hive/pull/3430#discussion_r925149231


##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/writer/WriterBuilder.java:
##########
@@ -95,7 +96,9 @@ public HiveIcebergWriter build() {
     int currentSpecId = table.spec().specId();
     int partitionId = attemptID.getTaskID().getId();
     int taskId = attemptID.getId();
-    String operationId = queryId + "-" + attemptID.getJobID();
+    Map<String, List<HiveIcebergWriter>> writers = 
WriterRegistry.writers(attemptID);
+    int writerCount = writers == null ? 0 : writers.size();
+    String operationId = queryId + "-" + attemptID.getJobID() + "-" + 
writerCount;

Review Comment:
   Added AtomicInteger instead of getting the number of writers.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to