Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We propose the following change to the message format

 

Proposed Changes

Option 1 - Add both CreateTime and LogAppendTime to message format

Wire protocol change

Code Block
languagejava
MessageAndOffset => MessageSize Offset Message
  MessageSize => int32
  Offset => int64
  
  Message => Crc MagicByte Attributes Timestamp KeyLength Key ValueLength Value
    Crc => int32
    MagicByte => int8
    Attributes => int8
    CreateTime => int64    <---------------------- NEW
    LogAppendTime => int64 <---------------------- NEW
    KeyLength => int32
    Key => bytes
    ValueLength => int32
    Value => bytes

...