kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Attila Kreiner (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-5726) KafkaConsumer.subscribe() overload that takes just Pattern without ConsumerRebalanceListener
Date Wed, 06 Sep 2017 08:35:00 GMT

    [ https://issues.apache.org/jira/browse/KAFKA-5726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16155000#comment-16155000
] 

Attila Kreiner commented on KAFKA-5726:
---------------------------------------

The PR is ready to be reviewed.

> 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)

Mime
View raw message