[
https://issues.apache.org/jira/browse/KAFKA-21475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lucy Liu reassigned KAFKA-21475:
--------------------------------
Assignee: Lucy Liu (was: Chia-Ping Tsai)
> 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: Lucy Liu
> Priority: Minor
>
> 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)