---
title: "Eligible Leader Replicas (ELR) in Kafka 4.1: What You Need to Know"
url: https://daily.dev/posts/eligible-leader-replicas-elr-in-kafka-4-1-what-you-need-to-know-0e0n2w9ky
source_url: https://softwaremill.com/eligible-leader-replicas-elr-in-kafka-4-1-what-you-need-to-know
type: article
source: "SoftwareMill"
published: 2026-07-24T13:15:28.426Z
updated: 2026-08-24T08:22:40.784Z
tags: ["data-engineering", "distributed-systems", "apache-kafka"]
reading_time: 12
upvotes: 1
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Eligible Leader Replicas (ELR) in Kafka 4.1: What You Need to Know

**[SoftwareMill](https://daily.dev/sources/softwaremill)** · 12 min read · 1 upvotes · 0 comments

## Summary

KIP-966 introduces Eligible Leader Replicas (ELR) in Apache Kafka 4.1 to fix the rare but critical 'Last Replica Standing' scenario where committed messages could be lost even with acks=all. ELR creates a middle-ground replica state between ISR and fully untrusted replicas: when the ISR drops below min.insync.replicas, replicas that held data up to the frozen High Watermark are tracked in the ELR list and remain safe leader candidates. The fix also includes a High Watermark advance rule change (HWM only advances when ISR >= min.insync.replicas, regardless of producer acks setting) and improved unclean shutdown detection via CleanShutdownFile epoch checks. Consumers will notice that a degraded ISR now freezes consumption visibility, not just production durability. ELR is experimental in Kafka 4.0 and enabled by default in 4.1 (KRaft only).

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://softwaremill.com/eligible-leader-replicas-elr-in-kafka-4-1-what-you-need-to-know>

## Similar posts on daily.dev

- [Apache Kafka Replica Followers: Synchronous or Asynchronous?](https://daily.dev/posts/apache-kafka-replica-followers-synchronous-or-asynchronous--hnvn4k0ak) · SoftwareMill · 4 upvotes · 0 comments
- [Understanding in-sync replicas and replication factor in Confluent Stretched Cluster 2.5](https://daily.dev/posts/understanding-in-sync-replicas-and-replication-factor-in-confluent-stretched-cluster-2-5-ssa0wwvwh) · SoftwareMill · 1 upvotes · 0 comments

---

Tags: [#data-engineering](https://daily.dev/tags/data-engineering), [#distributed-systems](https://daily.dev/tags/distributed-systems), [#apache-kafka](https://daily.dev/tags/apache-kafka)

[View this post on daily.dev](https://daily.dev/posts/eligible-leader-replicas-elr-in-kafka-4-1-what-you-need-to-know-0e0n2w9ky)
