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

New producer metadata update always get all topics.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • None
    • None

    Description

      The new java producer metadata.topics is initially empty so the producer sends TMR with empty topic set. The broker takes the empty requested topic set as all topics, so metadata.cluster contains all topic metadata. Later on, when a new topic was produced, it gets added into the metadata.topics. The next metadata update will only contain the meta data for this new topic, so the metadata.cluster will only have this topic. Since there are a lot of messages are still in the accumulator but has no metadata in metadata.cluster, if a caller thread do a flush(), the caller thread will block forever because the messages sitting in accumulator without metadata will never be ready to send.
      We should add check for the metadata.topics, if it is empty, no TMR should be sent.

      Attachments

        1. KAFKA-2042_2015-03-24_13:37:49.patch
          5 kB
          Jiangjie Qin
        2. KAFKA-2042_2015-03-24_13:57:23.patch
          7 kB
          Jiangjie Qin
        3. KAFKA-2042.patch
          2 kB
          Jiangjie Qin

        Activity

          People

            becket_qin Jiangjie Qin
            becket_qin Jiangjie Qin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: