Kafka
  1. Kafka
  2. KAFKA-787

Simple Consumer connecting to Broker that is not the Leader generates wrong error

    Details

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

      Description

      0.8.0 HEAD from 3/4/2013

      Using a SimpleConsumer, connect to a Broker that is NOT the leader for the topic/partition you want to fetch, but IS a replica.

      On fetch the error returned is '5' 'ErrorMapping.LeaderNotAvailableCode'

      Per email thread with Neha:

      "Ideally, you should get back ErrorMapping.NotLeaderForPartitionCode"

      Key part of the test is the Broker must be a replica. If the topic/partition is not on the Broker you get a different (correct) error.

      1. kafka-787.patch
        0.8 kB
        Neha Narkhede

        Activity

        Chris Curtin created issue -
        Neha Narkhede made changes -
        Field Original Value New Value
        Assignee Neha Narkhede [ nehanarkhede ]
        Neha Narkhede made changes -
        Labels kafka-0.8 p2
        Hide
        Neha Narkhede added a comment -

        Minor fix for the correct error code

        Show
        Neha Narkhede added a comment - Minor fix for the correct error code
        Neha Narkhede made changes -
        Attachment kafka-787.patch [ 12572193 ]
        Neha Narkhede made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Jun Rao added a comment -

        +1

        Show
        Jun Rao added a comment - +1
        Neha Narkhede made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Neha Narkhede made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Neha Narkhede
            Reporter:
            Chris Curtin
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development