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

Downconversion could fail when log contains out of order message formats

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.2, 2.0.2, 2.1.2, 2.2.2, 2.3.1
    • Component/s: clients
    • Labels:
      None

      Description

      When the log contains out of order message formats (for example a v2 message followed by a v1 message), it is possible for down-conversion to fail in certain scenarios where batches compressed and greater than 1kB in size. Down-conversion fails with a stack like the following:

      java.lang.IllegalArgumentException
      at java.nio.Buffer.limit(Buffer.java:275)
      at org.apache.kafka.common.record.FileLogInputStream$FileChannelRecordBatch.writeTo(FileLogInputStream.java:176)
      at org.apache.kafka.common.record.AbstractRecords.downConvert(AbstractRecords.java:107)
      at org.apache.kafka.common.record.FileRecords.downConvert(FileRecords.java:242)

        Attachments

          Activity

            People

            • Assignee:
              dhruvilshah Dhruvil Shah
              Reporter:
              dhruvilshah Dhruvil Shah
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: