[
https://issues.apache.org/jira/browse/KAFKA-18048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
PoAn Yang updated KAFKA-18048:
------------------------------
Issue Type: Improvement (was: Test)
> Consider to decouple AppEventHandler from ConsumerNetworkThread
> ---------------------------------------------------------------
>
> Key: KAFKA-18048
> URL: https://issues.apache.org/jira/browse/KAFKA-18048
> Project: Kafka
> Issue Type: Improvement
> Reporter: PoAn Yang
> Assignee: PoAn Yang
> Priority: Minor
>
> When implementing new JMX metrics in AsyncKafkaConsumer, we would like to
> encapsulate applicationEventQueue in ApplicationEventHandler, so we don't
> need to expose applicationEventQueue in ConsumerNetworkThread.
> However, we start ConsumerNetworkThread in ApplicationEventHandler. This
> makes circular dependency. We can try to decouple these components, so
> ConsumerNetworkThread doesn't need to get application events from the queue
> directly.
> ref: https://github.com/apache/kafka/pull/17199#discussion_r1849058419
--
This message was sent by Atlassian Jira
(v8.20.10#820010)