GeezerVison is showing github.com — KAFKA-21444 Document acks=1 record loss during planned leader transit… · coderbruis/kafka@c9c8838
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: docs/operations/basic-kafka-operations.md +2Lines changed: 2 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -113,6 +113,8 @@ controlled.shutdown.enable=true |
113 | 113 |
|
114 | 114 | Note that controlled shutdown will only succeed if _all_ the partitions hosted on the broker have replicas (i.e. the replication factor is greater than 1 _and_ at least one of these replicas is alive). This is generally what you want since shutting down the last replica would make that topic partition unavailable. |
115 | 115 |
|
| 116 | +Even when controlled shutdown succeeds, records produced with `acks=1` may be lost if the leader acknowledged them but had not yet replicated them to the new leader. The same applies to other planned leadership changes, such as preferred leader election and partition reassignment that removes the current leader. Producers that need these records to survive leadership changes should use `acks=all`. |
| 117 | + |
116 | 118 | ## Balancing leadership |
117 | 119 |
|
118 | 120 | Whenever a broker stops or crashes, leadership for that broker's partitions transfers to other replicas. When the broker is restarted it will only be a follower for all its partitions, meaning it will not be used for client reads and writes. |
|