[
https://issues.apache.org/jira/browse/KAFKA-15865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17789139#comment-17789139
]
Lucas Brutschy commented on KAFKA-15865:
----------------------------------------
[~pnee] I just checked this out, but I'm actually not sure if this ticket is
necessary. Is there a way to register a callback with autocommits? I quickly
scanned the code of the original consumer and I couldn't find the code that
executes an (application) callback after auto-commit.
cc [~cadonna] in case you looked at this before.
I think we should remove `AutoCommitCompletionBackgroundEvent` and close this
ticket.
> 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)