cadonna commented on code in PR #15445:
URL: https://github.com/apache/kafka/pull/15445#discussion_r1507973505


##########
clients/src/test/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumerTest.java:
##########
@@ -892,6 +893,24 @@ public void testWakeupCommitted() {
         assertNull(consumer.wakeupTrigger().getPendingTask());
     }
 
+    @Test
+    public void testNoWakeupInCloseCommit() {

Review Comment:
   The error I get is:
   ```java
   org.mockito.exceptions.verification.TooManyActualInvocations: 
   applicationEventHandler.add(
       <Capturing argument>
   );
   Wanted 1 time:
   -> at 
org.apache.kafka.clients.consumer.internals.events.ApplicationEventHandler.add(ApplicationEventHandler.java:72)
   But was 2 times:
   -> at 
org.apache.kafka.clients.consumer.internals.AsyncKafkaConsumer.commit(AsyncKafkaConsumer.java:807)
   -> at 
org.apache.kafka.clients.consumer.internals.AsyncKafkaConsumer.prepareShutdown(AsyncKafkaConsumer.java:1272)
   
   ```



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to