Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14048 The Next Generation of the Consumer Rebalance Protocol
  3. KAFKA-15539

Client should stop fetching while partitions being revoked

    XMLWordPrintableJSON

Details

    Description

      When partitions are being revoked (client received revocation on heartbeat and is in the process of invoking the callback), we need to make sure we do not fetch from those partitions anymore:

      • no new fetches should be sent out for the partitions being revoked
      • no fetch responses should be handled for those partitions (case where a fetch was already in-flight when the partition revocation started.

      This does not seem to be handled in the current KafkaConsumer and the old consumer protocol (only for the EAGER protocol). 

      Consider re-using the existing pendingRevocation logic that already exist in the subscriptionState & used from the fetcher to determine if a partition is fetchable. 

      Attachments

        Issue Links

          Activity

            People

              lianetm Lianet Magrans
              lianetm Lianet Magrans
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: