Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-18048

Consider to decouple AppEventHandler from ConsumerNetworkThread

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            yangpoan PoAn Yang
            yangpoan PoAn Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: