The network dropped, and the producer got no reply from the broker. It does not know whether the record was written, so it sends it again. If the first attempt did get through, the log ends up with two identical records, and when several requests are in flight, a retry can also swap records around.
In this lesson
- Retries and reordering
- How the producer numbers records
- Let's check on the broker
- What idempotence does not cover
- Common mistake
- Key points