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

The Kafka Metrics class should clear the mbeans map when closing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: metrics
    • Labels:
      None

      Description

      The JmxReporter should clear the mbeans map when closing. Otherwise, metrics may be incorrectly re-registered if the JmxReporter class is used after it is closed.

      For example, calling JmxReporter#close followed by JmxReporter#unregister could result in some of the mbeans that were removed in the close operation being re-registered.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cmccabe Colin McCabe
                Reporter:
                cmccabe Colin McCabe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: