fluss
fluss copied to clipboard
[Umbrella] Kafka Idempotent Producer
Search before asking
- [x] I searched in the issues and found nothing similar.
Motivation
FIP-55 lets Kafka producers write into Fluss tables, but idempotent produce, the Kafka producer's default since 3.0, is not supported yet. FIP-59 closes this gap so Kafka producers can retry safely and each record is stored exactly once and in order.
FIP: https://cwiki.apache.org/confluence/x/BAOWGw Discussion: https://lists.apache.org/thread/fmlyp6mjtzfncxtwysvrcp3f4vlpv3tt
Plan
- Add a new log batch format (V3) that adds a writer epoch and lets a batch carry Kafka's record-level sequence numbers, while old clients keep working. V3 is enabled through a cluster feature gate once every server is upgraded.
- Use the writer epoch in Fluss's own writers, so a writer can restart its sequence safely, for example after its state expired on the server.
- Build Kafka idempotent produce on top of both, mapping the Kafka producer ID, epoch and sequence numbers to the new fields.
Sub-tasks
- [ ] #5089
- [ ] #5187
- [ ] #5091
- [ ] #5092
- [ ] #5144
Related
- #4185: FIP-55 Basic Produce