ayushtkn commented on code in PR #4082:
URL: https://github.com/apache/hive/pull/4082#discussion_r1118373976


##########
kafka-handler/src/java/org/apache/hadoop/hive/kafka/KafkaStorageHandler.java:
##########
@@ -310,7 +311,7 @@ private String getQueryId() {
 
     RetryUtils.CleanupAfterFailure cleanUpTheMap = new 
RetryUtils.CleanupAfterFailure() {
       @Override public void cleanup() {
-        producersMap.forEach((s, producer) -> producer.close(0, 
TimeUnit.MILLISECONDS));
+        producersMap.forEach((s, producer) -> 
producer.close(Duration.ofMillis(TimeUnit.MILLISECONDS.toMillis(0))));

Review Comment:
   Why not directly do ``Duration.ofMillis(0))``
   Something like this
   ```
           producersMap.forEach((s, producer) -> 
producer.close(Duration.ofMillis(0)));
   ```



-- 
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