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

ASF GitHub Bot commented on KAFKA-2698:
---------------------------------------

GitHub user thomaslee opened a pull request:

    https://github.com/apache/kafka/pull/403

    KAFKA-2698: Add paused() method to o.a.k.c.c.Consumer

    As per KAFKA-2698, this adds a `paused()` method to the Consumer interface 
such that client code can query Consumer implementations for paused partitions.
    
    Somewhat new to the code base but I understand this may require a KIP given 
this changes APIs: is this required even for backward-compatible changes like 
this?

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/thomaslee/kafka tom_consumer_paused_query

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/403.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #403
    
----
commit ec92932395c401a8f87986bd2e91e296500c3612
Author: Tom Lee <git...@tomlee.co>
Date:   2015-11-02T00:58:38Z

    KAFKA-2698: Add paused() method to o.a.k.c.c.Consumer

----


> add paused API
> --------------
>
>                 Key: KAFKA-2698
>                 URL: https://issues.apache.org/jira/browse/KAFKA-2698
>             Project: Kafka
>          Issue Type: Sub-task
>          Components: consumer
>            Reporter: Onur Karaman
>             Fix For: 0.9.0.0
>
>
> org.apache.kafka.clients.consumer.Consumer tends to follow a pattern of 
> having an action API paired with a query API:
> subscribe() has subscription()
> assign() has assignment()
> There's no analogous API for pause.
> Should there be a paused() API returning Set<TopicPartition>?



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

Reply via email to