José Armando García Sancio created KAFKA-15345:
--------------------------------------------------
Summary: KRaft leader should notify the listener only when it has
read up to the leader's epoch
Key: KAFKA-15345
URL: https://issues.apache.org/jira/browse/KAFKA-15345
Project: Kafka
Issue Type: Bug
Reporter: José Armando García Sancio
Assignee: José Armando García Sancio
Fix For: 3.6.0
In a non-empty log the KRaft leader only notifies the listener of leadership
when it has read to the leader's epoch start offset. This guarantees that the
leader epoch has been committed and that the listener has read all committed
offset/records.
Unfortunately, the KRaft leader doesn't do this when the log is empty. When the
log is empty the listener is notified immediately when it has become leader.
This makes the API inconsistent and harder to program against.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)