[
https://issues.apache.org/jira/browse/KAFKA-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gwen Shapira updated KAFKA-2892:
--------------------------------
Resolution: Fixed
Fix Version/s: 0.9.1.0
Status: Resolved (was: Patch Available)
Issue resolved by pull request 592
[https://github.com/apache/kafka/pull/592]
> Consumer Docs Use Wrong Method
> ------------------------------
>
> Key: KAFKA-2892
> URL: https://issues.apache.org/jira/browse/KAFKA-2892
> Project: Kafka
> Issue Type: Bug
> Components: clients
> Affects Versions: 0.9.0.0
> Reporter: Jesse Anderson
> Fix For: 0.9.0.0, 0.9.1.0
>
> Attachments: docspatch.diff
>
>
> The KafkaConsumer docs use a non-existent method for assigning partitions
> ({{consumer.assign}}).
> The JavaDocs show as:
> String topic = "foo";
> TopicPartition partition0 = new TopicPartition(topic, 0);
> TopicPartition partition1 = new TopicPartition(topic, 1);
> consumer.assign(partition0);
> consumer.assign(partition1);
> Should be:
> String topic = "foo";
> TopicPartition partition0 = new TopicPartition(topic, 0);
> TopicPartition partition1 = new TopicPartition(topic, 1);
> consumer.assign(Arrays.asList(partition0));
> consumer.assign(Arrays.asList(partition1));
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)