Chia-Ping Tsai created KAFKA-21475:
--------------------------------------

             Summary: Fix the docs of onPartitionsLost and add tests for 
RebalanceConsumer#position and seek
                 Key: KAFKA-21475
                 URL: https://issues.apache.org/jira/browse/KAFKA-21475
             Project: Kafka
          Issue Type: Sub-task
            Reporter: Chia-Ping Tsai
            Assignee: Chia-Ping Tsai


The lost partitions are still in the assignment, so it is safe to pass them to 
either seek or position. The docs are incorrect, and we don’t have such tests. 
It is worth having one.

 
{code:java}
     *   <li>{@link 
RebalanceConsumer#position(org.apache.kafka.common.TopicPartition) position()} 
and
     *       {@link 
RebalanceConsumer#seek(org.apache.kafka.common.TopicPartition, long) seek()} 
will
     *       fail for the lost partitions since they are not in the 
assignment.</li>
{code}
 



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to