You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Attila Kreiner (JIRA)" <ji...@apache.org> on 2017/09/01 15:20:00 UTC
[jira] [Commented] (KAFKA-5726) KafkaConsumer.subscribe() overload
that takes just Pattern without ConsumerRebalanceListener
[ https://issues.apache.org/jira/browse/KAFKA-5726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16150708#comment-16150708 ]
Attila Kreiner commented on KAFKA-5726:
---------------------------------------
[KIP|https://cwiki.apache.org/confluence/display/KAFKA/KIP-191%3A+KafkaConsumer.subscribe%28%29+overload+that+takes+just+Pattern] accepted.
> KafkaConsumer.subscribe() overload that takes just Pattern without ConsumerRebalanceListener
> --------------------------------------------------------------------------------------------
>
> Key: KAFKA-5726
> URL: https://issues.apache.org/jira/browse/KAFKA-5726
> Project: Kafka
> Issue Type: Improvement
> Components: consumer
> Affects Versions: 0.11.0.0
> Reporter: Yeva Byzek
> Assignee: Attila Kreiner
> Priority: Minor
> Labels: needs-kip, newbie, usability
>
> Request: provide {{subscribe(Pattern pattern)}} overload, similar to {{subscribe(Collection<String> topics)}},
> Today, for a consumer to subscribe to topics based on a regular expression (i.e. {{Pattern}}), the only method option also requires to pass in a {{ConsumerRebalanceListener}}. This is not user-friendly to require this second argument. It seems {{new NoOpConsumerRebalanceListener()}} has to be used.
> Use case: multi datacenter, allowing easier subscription to multiple topics prefixed with datacenter names, just by using a pattern subscription.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)