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

Unregister JMX MBean when shutting down ConsumerConnector

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.8.0
    • None
    • consumer
    • None

    Description

      In our application, we are currently starting a Kafka Consumer with the
      following lines of code:

      connector = Consumer.createJavaConsumerConnector(consumerConfig);
      streams = connector .createMessageStreams(map);

      Then, each KafkaStream is processed in a dedicated thread per topic and
      partition, as documented here
      https://cwiki.apache.org/confluence/display/KAFKA/Consumer+Group+Example

      When we call:

      connector.shutdown()

      We can see that the MBean is not unregistered at shutdown time and still "alive" even if the consumer connector has been shut down.

      Attachments

        Issue Links

          Activity

            People

              nehanarkhede Neha Narkhede
              Tlrx Tanguy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: