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

New producer metadata response handling should only exclude a PartitionInfo when its error is LEADER_NOT_AVAILABLE

    XMLWordPrintableJSON

Details

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

    Description

      The new producer is not able to produce data when it sees ReplicaNotAvailable error, even when the leader of the replica is still available.

      This behavior is different from old producer, which says "any other error code (e.g. ReplicaNotAvailable) can be ignored since the producer does not need to access the replica and isr metadata".

      To reproduce the error:
      1) Start 4 brokers
      2) Create a topic of 1 partition using a replication factor of 3.
      3) Start producerPerformance with new producer
      4) Kill the leader of the topic/partition
      5) Kill the new leader of the topic/partition
      6) Observe that the producerPerformance stops producing data.

      Attachments

        1. KAFKA-1609.patch
          1 kB
          Dong Lin
        2. KAFKA-1609_2014-08-22_13:04:10.patch
          1 kB
          Dong Lin
        3. KAFKA-1609_2014-08-22_16:22:00.patch
          3 kB
          Dong Lin

        Activity

          People

            lindong Dong Lin
            lindong Dong Lin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: