[
https://issues.apache.org/jira/browse/KAFKA-15865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17789148#comment-17789148
]
Lucas Brutschy commented on KAFKA-15865:
----------------------------------------
Note that `maybeInvokeCommitCallbacks` is executed in
`AsyncKafkaConsumer.close` after the background thread has closed, so to
execute aync commit callbacks, we don't need an event on the queue. And auto
commits don't have callbacks.
> Ensure consumer.poll() execute autocommit callback
> --------------------------------------------------
>
> Key: KAFKA-15865
> URL: https://issues.apache.org/jira/browse/KAFKA-15865
> Project: Kafka
> Issue Type: Sub-task
> Components: consumer
> Reporter: Philip Nee
> Assignee: Lucas Brutschy
> Priority: Major
> Labels: consumer-threading-refactor, kip-848-preview
>
> When the network thread completes autocommits, we need to send a
> message/event to the application to notify the thread to execute the
> callback. In KAFKA-15327, the network thread sends a
> AutoCommitCompletionBackgroundEvent to the polling thread. The polling
> thread should trigger the OffsetCommitCallback upon receiving it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)