chia7712 commented on code in PR #23400:
URL: https://github.com/apache/kafka/pull/23400#discussion_r4029894181


##########
clients/src/test/java/org/apache/kafka/clients/consumer/KafkaConsumerTest.java:
##########
@@ -2487,11 +2487,11 @@ private void consumerCloseTest(GroupProtocol 
groupProtocol,
 
             // Close task should not complete until commit succeeds or close 
times out
             // if close timeout is not zero.
-            if (closeTimeoutMs != 0) {
-                assertThrows(TimeoutException.class, () -> future.get(100, 
TimeUnit.MILLISECONDS), "Close completed without waiting for commit or leave 
response");
-            } else {
-                // Handle the case where timeout is 0, if needed
+            try {

Review Comment:
   @kapilhadoltikar would you mind taking a look at the sample code? 
https://github.com/apache/kafka/pull/23400#discussion_r3997339250



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

Reply via email to