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 Bug
    • Status: Resolved
    • Priority: Major 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.

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

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development