PoAn Yang created KAFKA-18048: --------------------------------- Summary: Consider to decouple AppEventHandler from ConsumerNetworkThread Key: KAFKA-18048 URL: https://issues.apache.org/jira/browse/KAFKA-18048 Project: Kafka Issue Type: Test Reporter: PoAn Yang Assignee: PoAn Yang
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)