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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0.0
    • Component/s: consumer
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: