Kafka
  1. Kafka
  2. KAFKA-207

AsyncProducerStats is not a singleton

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7
    • Component/s: core
    • Labels:
      None

      Description

      AsyncProducerStats is not a singleton. This means that if a client instantiates multiple producers, the stat is collected for only 1 instance, instead of all instances.

        Activity

        Hide
        Neha Narkhede added a comment -

        +1

        Show
        Neha Narkhede added a comment - +1
        Hide
        Jun Rao added a comment -

        Make AsyncProducerStats a singleton that tracks dropped events from all AsyncProducer instances. Add a separate jmx bean that reports the queue size for each AsyncProducer instance.

        Show
        Jun Rao added a comment - Make AsyncProducerStats a singleton that tracks dropped events from all AsyncProducer instances. Add a separate jmx bean that reports the queue size for each AsyncProducer instance.

          People

          • Assignee:
            Jun Rao
            Reporter:
            Jun Rao
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development