You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Matthias J. Sax (JIRA)" <ji...@apache.org> on 2019/02/17 19:15:01 UTC

[jira] [Commented] (KAFKA-4693) Consumer subscription change during rebalance causes exception

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

Matthias J. Sax commented on KAFKA-4693:
----------------------------------------

Moving all major/minor/trivial tickets that are not merged yet out of 2.2 release.

> Consumer subscription change during rebalance causes exception
> --------------------------------------------------------------
>
>                 Key: KAFKA-4693
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4693
>             Project: Kafka
>          Issue Type: Bug
>          Components: consumer
>            Reporter: Jason Gustafson
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> After every rebalance, the consumer validates that the assignment received contains only partitions from topics that were subscribed. If not, then we raise an exception to the user. It is possible for a wakeup or an interrupt to leave the consumer with a rebalance in progress (e.g. with a JoinGroup to the coordinator in-flight). If the user then changes the topic subscription, then this validation upon completion of the rebalance will fail. We should probably detect the subscription change, eat the exception, and request another rebalance. 



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