Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
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