Monedula
Kafka guide contents

Markdown

Part VI · Reference

Kafka Improvement Proposal

KIP-679: the safest producer settings became the default

Producers and transactions · Shipped · since Kafka 3.0 · status checked November 2026

KIP-679 changed two producer defaults in Kafka 3.0: acks went from 1 to all and enable.idempotence from false to true. A producer with no special settings now waits for every in-sync replica and never writes duplicates on retry. To make that possible, idempotent producers only need WRITE on the topic instead of a cluster-wide IDEMPOTENT_WRITE ACL.

Proposal
KIP-679, Producer will enable the strongest delivery guarantee by default
Status
Shipped Since Kafka 3.0 (2021); idempotence by default actually works from 3.0.1, 3.1.1 and 3.2.0.
Area
Producers and transactions
Duplicate: O1 now at offsets 0 AND 1. The re-sent copy replicates to the ISR and the high watermark advances to 2. With no sequence number to recognise the re-send, the broker treats it as a brand-new record - the log holds O1 twice. Retries without idempotence cause duplicates. Open this step in the full playground

Why it was needed

Before Kafka 3.0 the defaults favoured latency: acks=1 answered once the leader had the record, and retries could write duplicates. Most users never changed them, so a leader failure could lose acknowledged records and a lost acknowledgement could duplicate them. Idempotence was off partly because it needed the IDEMPOTENT_WRITE permission on the whole cluster, which few teams granted.

What it changes

Kafka 2.8 prepared the ground: the broker started accepting idempotent producers with plain WRITE on any topic. Kafka 3.0 then flipped the defaults to acks=all and enable.idempotence=true. Idempotence still needs acks=all, retries above zero and at most five requests in flight. If a conflicting setting is present and idempotence was not set explicitly, the producer quietly turns idempotence off; if it was set explicitly, the producer fails with a ConfigException.

How to use it

  • Nothing to do on Kafka 3.2 or newer clients: acks=all and enable.idempotence=true are the defaults.
  • If you set acks=1, retries=0 or more than five in-flight requests, you also lose idempotence; set enable.idempotence=true explicitly to get an error instead of a silent downgrade.
  • A 3.x or newer producer talking to a broker older than 2.8 still needs the IDEMPOTENT_WRITE ACL or enable.idempotence=false.

Where it stands

Shipped in Kafka 3.0. A bug (KAFKA-13598) kept idempotence off in 3.0.0 and 3.1.0 even though acks=all applied; it was fixed in 3.0.1, 3.1.1 and 3.2.0. Since Kafka 4.0 the producer no longer disables idempotence on its own when more than five requests are in flight.

What comes next

The IDEMPOTENT_WRITE ACL operation is deprecated but still exists. Kafka Connect still turns idempotence off for its own producers by default, which the upgrade notes say may change in a future major release.

See it in the simulator

Sources

All Kafka KIPs