---
title: "KIP-1279 explained: Apache Kafka Cluster Mirroring"
description: "KIP-1279 in plain words: brokers copy a topic to another cluster with the same name and the same offsets, so consumers fail over without translation. Status."
url: https://monedula.dev/kafka/kips/kip-1279/
---

# 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.

## At a glance

- 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
- Proposal page: [KIP-1279 on the Apache Kafka wiki](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1279%3A+Cluster+Mirroring)

## 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

- [Apache Kafka Cluster Mirroring (KIP-1279): stop and failback](https://monedula.dev/kafka-simulator/scenarios/cluster-mirroring-stop-failback/) (Cluster Mirroring: stop and fail back), step 4: 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 at this step](https://monedula.dev/kafka-simulator/playground/?scenario=20.1.6&t=3)
- [Apache Kafka Cluster Mirroring (KIP-1279): stop and failback](https://monedula.dev/kafka-simulator/scenarios/cluster-mirroring-stop-failback/) (Cluster Mirroring: stop and fail back), step 7: Fail back: truncate and mirror back. The failback is a reverse mirror, dr → primary. It truncates orders on primary to the end of the last mirrored epoch, offset 5, where dr's epoch 1 begins, which deletes O4 and the COMMIT marker primary wrote after it, makes it a read-only mirror, and copies dr's log back from there: the stop's ABORT marker, then D1. dr is not truncated: it is the source now and keeps its log as it is. The two logs converge, so offsets 3-4 are now aborted on primary too. In Kafka every marker takes an offset (the ABORT at 5, D1 at 6); the simulator's markers take none, so D1 shows at 5. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=20.1.6&t=6)
- [Confluent Cluster Linking: offset-preserving Kafka mirroring](https://monedula.dev/kafka-simulator/scenarios/cluster-linking-offset-preserving/) (Cluster Linking: byte-for-byte offset-preserving mirror), step 2: Offsets preserved (cluster link) vs translated (MM2). Both destinations now hold 3 records. The cluster link copied orders byte-for-byte: orders on dr has offsets == source offsets, and the link carries NO offsetMap. MM2 re-produced payments and built an offsetMap translation table on mm-payments - same numbers here, but it is the machinery cluster linking avoids. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=20.1.1&t=1)
- [Kafka mirror topics (Confluent): read-only until promoted](https://monedula.dev/kafka-simulator/scenarios/mirror-read-only-promote-writable/) (Mirror topics are read-only; promotion makes them writable), step 3: promote_mirror → writable. promote_mirror flips orders on dr from 'mirror' to 'promoted' and clears the read-only mirrored flags - it is now an ordinary writable topic - and stops mirroring that topic. The simulator removes the link, which carried only this topic; a real cluster link stays up for its other mirror topics. A mirror_promoted event records the transition (drives replay). [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=20.1.2&t=2)
- [Kafka failover and failback with Confluent Cluster Linking](https://monedula.dev/kafka-simulator/scenarios/bidirectional-links-failback/) (Bidirectional links and clean failback), step 3: Switchover: promote + reverse. switch_cluster_link promotes orders to writable on dr, DEMOTES orders to a read-only mirror on primary, and reverses the link in place (dr → primary) so it mirrors back into orders on primary. The read-only state is per region: the same name is writable on one side and a mirror on the other. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=20.1.5&t=2)

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

- [KIP-1279: Cluster Mirroring](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1279%3A+Cluster+Mirroring)
- [KIP-1279 vote result on the dev mailing list](https://lists.apache.org/thread/cjo3555pzzpwtxl9tn3s3hls65y69yk6)

## Related KIPs

- [KIP-382 explained: MirrorMaker 2 for Kafka replication](https://monedula.dev/kafka/kips/kip-382/)
- [KIP-545 explained: MirrorMaker 2 consumer offset sync](https://monedula.dev/kafka/kips/kip-545/)
