isolation.level — Kafka Consumer Configuration
Controls how to read messages written transactionally. If set to read_committed, consumer.poll() will only return transactional messages which have been committed
Description
Controls how to read messages written transactionally. If set to read_committed, consumer.poll() will only return transactional messages which have been committed. If set to read_uncommitted (the default), consumer.poll() will return all messages, even transactional messages which have been aborted. Non-transactional messages will be returned unconditionally in either mode.Messages will always be returned in offset order. Hence, in read_committed mode, consumer.poll() will only return messages up to the last stable offset (LSO), which is the one less than the offset of the first open transaction. In particular any messages appearing after messages belonging to ongoing transactions will be withheld until the relevant transaction has been completed. As a result, read_committed consumers will not be able to read up to the high watermark when there are in flight transactions.Further, when in read_committed the seekToEnd method will return the LSO
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Consumer | 0.11.0 | read_uncommitted |
| Consumer | 1.0 | read_uncommitted |
| Consumer | 1.1 | read_uncommitted |
| Consumer | 2.0 | read_uncommitted |
| Consumer | 2.1 | read_uncommitted |
| Consumer | 2.2 | read_uncommitted |
| Consumer | 2.3 | read_uncommitted |
| Consumer | 2.4 | read_uncommitted |
| Consumer | 2.5 | read_uncommitted |
| Consumer | 2.6 | read_uncommitted |
| Consumer | 2.7 | read_uncommitted |
| Consumer | 2.8 | read_uncommitted |
| Consumer | 3.0 | read_uncommitted |
| Consumer | 3.1 | read_uncommitted |
| Consumer | 3.2 | read_uncommitted |
| Consumer | 3.3 | read_uncommitted |
| Consumer | 3.4 | read_uncommitted |
| Consumer | 3.5 | read_uncommitted |
| Consumer | 3.6 | read_uncommitted |
| Consumer | 3.7 | read_uncommitted |
| Consumer | 3.8 | read_uncommitted |
| Consumer | 3.9 | read_uncommitted |
| Consumer | 4.0 | read_uncommitted |
| Consumer | 4.1 | read_uncommitted |
| Consumer | 4.2 | read_uncommitted |
| Consumer | 4.3 | read_uncommitted |
| Consumer | 4.4 | read_uncommitted |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| consumer / latency | read_uncommitted | read_committed hides aborted transactional records and reads up to the last stable offset. It also returns non-transactional records. Tradeoff: Open transactions can delay visibility until commit, abort or timeout. This alone does not make application processing exactly-once. Reference · 2026-10-27 |
| consumer / durability | read_committed | read_committed hides aborted transactional records and reads up to the last stable offset. It also returns non-transactional records. Tradeoff: Open transactions can delay visibility until commit, abort or timeout. This alone does not make application processing exactly-once. Reference · 2026-10-27 |
Related Configs
enable.auto.commit · auto.offset.reset