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

JMX metric ProducerRequestPurgatory doesn't exist, docs seem wrong.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      The docs say that there is a JMX metric

      kafka.server:type=ProducerRequestPurgatory,name=PurgatorySize
      

      But that doesn't seem to work. Using jconsole to inspect our kafka broker, it seems like the right metric is

      kafka.server:type=DelayedOperationPurgatory,name=PurgatorySize,delayedOperation=Produce
      

      And there are also variants of the above for Fetch, Heartbeat, and Rebalance.

      Is the fix to simply update the docs? From what I can see, the docs for this don't seem auto-generated from code. If it is a simple doc fix, I would like to take this JIRA.

      Btw, what is NumDelayedOperations, and how is it different from PurgatorySize?

      kafka.server:type=DelayedOperationPurgatory,name=NumDelayedOperations,delayedOperation=Produce
      

      And should I also update the docs for that?

      Attachments

        Activity

          People

            Unassigned Unassigned
            wushujames James Cheng
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: