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

Onur Karaman commented on KAFKA-1893:
-------------------------------------

I agree with [~singhashish] that we should keep all forms of subscription 
mutually exclusive: either use partition subscriptions, topic subscriptions, or 
wildcard topic subscriptions. Throw an exception if any mixing tries to happen. 
If the user needs anything more complex, they could use a combination of 
listTopics and one of the subscribes.

> Allow regex subscriptions in the new consumer
> ---------------------------------------------
>
>                 Key: KAFKA-1893
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1893
>             Project: Kafka
>          Issue Type: Sub-task
>          Components: consumer
>            Reporter: Jay Kreps
>            Assignee: Ashish K Singh
>            Priority: Critical
>             Fix For: 0.8.3
>
>
> The consumer needs to handle subscribing to regular expressions. Presumably 
> this would be done as a new api,
> {code}
>   void subscribe(java.util.regex.Pattern pattern);
> {code}
> Some questions/thoughts to work out:
>  - It should not be possible to mix pattern subscription with partition 
> subscription.
>  - Is it allowable to mix this with normal topic subscriptions? Logically 
> this is okay but a bit complex to implement.
>  - We need to ensure we regularly update the metadata and recheck our regexes 
> against the metadata to update subscriptions for new topics that are created 
> or old topics that are deleted.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to