You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Amir Malekpour (JIRA)" <ji...@apache.org> on 2014/09/17 02:59:33 UTC

[jira] [Created] (KAFKA-1637) SimpleConsumer.fetchOffset returns wrong error code

Amir Malekpour created KAFKA-1637:
-------------------------------------

             Summary: SimpleConsumer.fetchOffset returns wrong error code
                 Key: KAFKA-1637
                 URL: https://issues.apache.org/jira/browse/KAFKA-1637
             Project: Kafka
          Issue Type: Bug
          Components: consumer, core
    Affects Versions: 0.8.1.1, 0.8.1
         Environment: Linux
            Reporter: Amir Malekpour
            Assignee: Neha Narkhede


This concerns Kafka's Offset  Fetch API:

According to Kafka's current documentation, "if there is no offset associated with a topic-partition under that consumer group the broker does not set an error code (since it is not really an error), but returns empty metadata and sets the offset field to -1."  (Like below)

However, in Kafka 08.1.1 Error code '3' is returned, which effectively makes it impossible for the client to decide if there was an error, or if there is no offset associated with a topic-partition under that consumer group.


https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol#AGuideToTheKafkaProtocol-MetadataAPI




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)