Monedula
Kafka guide contents

Markdown

Part VI · Reference

Kafka Improvement Proposal

KIP-1279: Cluster Mirroring, the same offsets in both clusters

Across clusters · Accepted, not released · status checked November 2026

KIP-1279 adds Cluster Mirroring to Apache Kafka: the destination brokers fetch a topic straight from the source cluster and write it under the same name at the same offsets, as a read-only mirror. A consumer can switch clusters and keep its committed offset as is. The proposal was accepted in September 2026 and is being implemented.

Proposal
KIP-1279, Cluster Mirroring
Status
Accepted, not released Accepted in September 2026; being implemented, not in any release yet (Kafka 4.4 does not include it).
Area
Across clusters
Stop: writable now, the open transaction aborted. kafka-cluster-mirrors --stop is the only cutover KIP-1279 has: it does not wait for lag 0. orders on dr is writable, O4 never reached it (RPO 1), and the stop bumps dr's leader epoch from ε0 to ε1, the line between mirrored records and dr's own. It also appends ABORT markers for the transaction still open on primary, so offsets 3-4 are aborted on dr (the faded, struck-through cells). read_committed consumers there skip them. Open this step in the full playground

Why it was needed

MirrorMaker 2 (KIP-382) copies records by consuming and producing them again, so a record gets a new offset in the target cluster and offsets must be translated on failover, approximately. It also needs a Kafka Connect cluster to run. Confluent solved this commercially with Cluster Linking; Apache Kafka had no built-in equivalent.

What it changes

The destination cluster runs mirror fetcher threads that replicate the source partitions much like a follower replica does, byte for byte, so offsets, timestamps and transaction markers are identical. The mirror topic keeps its name and rejects client produces with READ_ONLY_TOPIC. Consumer group offsets are synced across. To fail over you stop the mirror, which makes the topic writable; pause and resume suspend mirroring; and to fail back you mirror in the other direction, truncating the old source to the last point both sides share. Every mirror operation needs the mirror.version feature flag.

Where it stands

The vote passed on 18 September 2026. The implementation is in progress in the Kafka repository, and the feature is not in Apache Kafka 4.4, the latest release; no target release is set. It will ship first as an early-access feature, disabled by default, and that release is planned to include access-control and topic-config sync, include and exclude filters and throttling.

What comes next

First the implementation has to land, behind the mirror.version feature flag; Kafka 4.5 is the earliest release it could be in. Follow-up KIPs are planned for synchronous replication, still a draft, and for mirroring topics on tiered storage; mirroring diskless topics is still under discussion. Until then, offset-preserving mirroring is only available in commercial products such as Confluent Cluster Linking.

See it in the simulator

Scenario 20.1.6 follows KIP-1279 as accepted; the Cluster Linking scenarios show the same offset-preserving model in Confluent's product. In free play, the link inspector can switch any mirror link to Apache Kafka Cluster Mirroring (KIP-1279), marked as a KIP in the interface.

Sources

All Kafka KIPs