Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-4693

Consumer subscription change during rebalance causes exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • consumer
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hachikuji Jason Gustafson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: