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

Andras Beni commented on KAFKA-6968:
------------------------------------

[~bgummalla] 
As I can see in [current 
code|https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/consumer/MockConsumer.java#L86],
 it is.


> Call RebalanceListener in MockConsumer
> --------------------------------------
>
>                 Key: KAFKA-6968
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6968
>             Project: Kafka
>          Issue Type: Improvement
>          Components: consumer
>    Affects Versions: 1.1.0
>            Reporter: Andras Beni
>            Priority: Minor
>
> {{org.apache.kafka.clients.consumer.MockConsumer}} simulates rebalance with 
> method {{public synchronized void rebalance(Collection<TopicPartition> 
> newAssignment)}}. This method does not call {{ConsumerRebalanceListener}} 
> methods. Calls to {{onPartitionsRevoked(...)}} and 
> {{onPartitionsAssigned(...)}} should be added in appropriate order.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to