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

A bug in the iterator of the ByteBufferMessageSet returns incorrect offsets when it encounters a compressed empty message set

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7
    • Component/s: None
    • Labels:
      None

      Description

      The deep iterator logic in the ByteBufferMessageSet returns incorrect offsets when it encounters empty compressed data. Ideally, it should be able to decompress the data, figure out that it is somehow empty, skip it and proceed to decoding rest of the data. To make this possible, the manner in which we update the offset to be returned by the iterator, needs to be tweaked.

        Attachments

        1. kafka-111.patch.v3
          3 kB
          Jun Rao
        2. kafka-111.patch.v2
          3 kB
          Jun Rao
        3. KAFKA-111.patch
          3 kB
          Neha Narkhede

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nehanarkhede Neha Narkhede
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: