[
https://issues.apache.org/jira/browse/KAFKA-20759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18093048#comment-18093048
]
Chia-Ping Tsai commented on KAFKA-20759:
----------------------------------------
before: 65s
after: 9s
> testUnsubscribeDoesNotCommitOffsetsEvenWithAutoCommitEnabled hangs in closing
> -----------------------------------------------------------------------------
>
> Key: KAFKA-20759
> URL: https://issues.apache.org/jira/browse/KAFKA-20759
> Project: Kafka
> Issue Type: Bug
> Reporter: Chia-Ping Tsai
> Assignee: Chia-Ping Tsai
> Priority: Minor
>
> Since testUnsubscribeDoesNotCommitOffsetsEvenWithAutoCommitEnabled enables
> auto-commit, the close() method will wait for the commit event to complete.
> Unfortunately, the test does not mock the applicationEventHandler to handle
> this event before closing ....
> {code:java}
> // Verify that no commit event (sync or async) was sent despite
> auto-commit being enabled
> verify(applicationEventHandler,
> never()).add(ArgumentMatchers.isA(SyncCommitEvent.class));
> verify(applicationEventHandler,
> never()).add(ArgumentMatchers.isA(AsyncCommitEvent.class));
> verify(applicationEventHandler,
> never()).add(ArgumentMatchers.isA(CommitOnCloseEvent.class));
> completeCommitSyncApplicationEventSuccessfully(); // we need to add
> this
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)