You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Eduardo Pinto (Jira)" <ji...@apache.org> on 2019/11/02 23:47:00 UTC
[jira] [Commented] (KAFKA-6968) Call RebalanceListener in
MockConsumer
[ https://issues.apache.org/jira/browse/KAFKA-6968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16965520#comment-16965520 ]
Eduardo Pinto commented on KAFKA-6968:
--------------------------------------
Hi, I've open a MR to do this small improvement.
> 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
(v8.3.4#803005)