fluss icon indicating copy to clipboard operation
fluss copied to clipboard

[rust] Support reading V3 log record batches

Open dstolis opened this issue 3 weeks ago • 0 comments

Search before asking

  • [x] I searched in the issues and found nothing similar.

Motivation

Part of #5088. #5089 adds log record batch format V3. Until the Rust client can read it, it uses FETCH_LOG v0 and the server converts V3 batches to the old format before returning them, which costs extra work on the server.

Solution

  • Read log magic V3, with its 58-byte header and the writerEpoch field after writerId.
  • Read the sequence mode from attributes bit 1 and expose the base and last sequence of a batch.
  • Use FETCH_LOG v1 when the server supports it, so the server no longer converts batches for the Rust client.
  • The Python and C++ bindings get V3 reads through the Rust client.
  • Depends on #5089 and #5187.
  • Tests: V2 and V3 batches in the same table read by the Rust client.

Willingness to contribute

  • [x] I'm willing to submit a PR!

dstolis avatar Nov 11 '26 09:11 dstolis