You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Bob Barrett (Jira)" <ji...@apache.org> on 2020/05/28 17:05:00 UTC

[jira] [Created] (KAFKA-10059) KafkaAdminClient returns null OffsetAndMetadata value when there is no committed offset for a partition

Bob Barrett created KAFKA-10059:
-----------------------------------

             Summary: KafkaAdminClient returns null OffsetAndMetadata value when there is no committed offset for a partition
                 Key: KAFKA-10059
                 URL: https://issues.apache.org/jira/browse/KAFKA-10059
             Project: Kafka
          Issue Type: Improvement
            Reporter: Bob Barrett


When listing consumer group offsets through the admin client, the map that we return has a null `OffsetAndMetadata` value if the partition has no committed offset. It would be better to return a non-null value that indicates the lack of an offset, such as `OffsetAndMetadata(-1, Optional.empty(), metadata)`. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)