Uploaded image for project: 'Crunch (Retired)'
  1. Crunch (Retired)
  2. CRUNCH-609

KafkaSource could skip data with slow broker response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.15.0
    • IO
    • None

    Description

      In the case of the consumer.poll timing out, the KafkaRecordReader could return with no values in the records iterator which then causes the KafkaRecordReader to exit prematurely[1]. To fix this we need to probably better track the start/end offset and that progress vs the null value.

      Additionally if we wanted to be smarter we could do some "backoff" for the timeout or just have consumer specify a larger value.

      [1] - https://github.com/apache/crunch/blob/360d72a4f887505e020fdb8f99c3ccb1800693f6/crunch-kafka/src/main/java/org/apache/crunch/kafka/inputformat/KafkaRecordReader.java#L122

      Attachments

        1. CRUNCH-609.patch
          13 kB
          Micah Whitacre
        2. CRUNCH-609b.patch
          17 kB
          Micah Whitacre
        3. CRUNCH-609c.patch
          19 kB
          Micah Whitacre
        4. CRUNCH-609d.patch
          19 kB
          Micah Whitacre

        Activity

          People

            mkwhitacre Micah Whitacre
            mkwhitacre Micah Whitacre
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: