Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1326 New consumer checklist
  3. KAFKA-2632

Move fetchable check from fetchedRecords to fetch response handler

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • consumer
    • None

    Description

      Since we check if the partition is fetchable or not in fetchedRecords(), there is a bug when the partition is paused during there is in-flight fetch request, it will not be ignored in fetch response handler but after that, in fetchedRecords(), causing the fetcher to update the fetched position already; later no fetch requests will ever be sent to the broker for this partition since consumed != fetched.

      The proposed fix is to move this check from fetchedRecords to handleFetchResponse in Fetcher.

      Attachments

        Activity

          People

            guozhang Guozhang Wang
            guozhang Guozhang Wang
            Jason Gustafson Jason Gustafson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: