Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-126

BrokerProxy calls SimpleConsumer.fetch with empty request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • kafka
    • None

    Description

      When I put a Thread.sleep(1000) in my process() method, I noticed that the reads metric in BrokerProxy:

      metrics.brokerReads(host, port).inc

      Is still be incremented thousands of times a second. This is unexpected, since I should only be processing 1 message a second, and therefore not be fetching until the message buffer for my input stream is empty, again.

      Upon investigation, I found that fetchMessage will call simpleConsumer.fetch, even if the fetch request being issued has no topic partitions in it.

      Attachments

        1. SAMZA-126.0.patch
          5 kB
          Chris Riccomini

        Activity

          People

            criccomini Chris Riccomini
            criccomini Chris Riccomini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: