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

MemoryRecords.Iterator needs to handle partial reads from compressed stream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • None
    • None

    Description

      Found a bug in the MemoryRecords.Iterator implementation, where

      stream.read(recordBuffer, 0, size)
      

      can read less than size'ed bytes, and rest of the recordBuffer would set to "\0".

      Attachments

        1. KAFKA-1735.patch
          1 kB
          Guozhang Wang

        Activity

          People

            guozhang Guozhang Wang
            guozhang Guozhang Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: