[ https://issues.apache.org/jira/browse/KAFKA-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14905304#comment-14905304 ]
Jason Gustafson commented on KAFKA-2409: ---------------------------------------- [~onurkaraman] With KAFKA-2403 checked in, do you have any objections to this change? [~sree2k] With a lot of the noise around the commit API more or less resolved, this should be fairly straightforward. If you don't have time to work on it, feel free to assign to me. > Have KafkaConsumer.committed() return null when there is no committed offset > ---------------------------------------------------------------------------- > > Key: KAFKA-2409 > URL: https://issues.apache.org/jira/browse/KAFKA-2409 > Project: Kafka > Issue Type: Sub-task > Reporter: Jason Gustafson > Assignee: Sreepathi Prasanna > Priority: Minor > Labels: newbie > Fix For: 0.9.0.0 > > > Currently checking whether an offset has been committed requires catching > NoOffsetForPartitionException. Since this is likely a fairly common case, it > is more convenient for users just to return null. -- This message was sent by Atlassian JIRA (v6.3.4#6332)