[ https://issues.apache.org/jira/browse/KAFKA-15345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
José Armando García Sancio resolved KAFKA-15345. ------------------------------------------------ Resolution: Fixed > 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 > Priority: Major > 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)