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

Wrong message format description

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • website
    • None

    Description

      Here in this page you describe current Kafka message format:

      MessageAndOffset => MessageSize Offset Message
        MessageSize => int32
        Offset => int64
       
        Message => Crc MagicByte Attributes KeyLength Key ValueLength Value
          Crc => int32
          MagicByte => int8
          Attributes => int8
          KeyLength => int32
          Key => bytes
          ValueLength => int32
          Value => bytes
      

      In reality offset goes before messageSize.

      Attachments

        Activity

          People

            guozhang Guozhang Wang
            ovgolovin Oleg Golovin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: