José Armando García Sancio created KAFKA-16767:
--------------------------------------------------
Summary: KRaft should track HWM outside the log layer
Key: KAFKA-16767
URL: https://issues.apache.org/jira/browse/KAFKA-16767
Project: Kafka
Issue Type: Improvement
Components: kraft
Reporter: José Armando García Sancio
The current implementation of KRaft tracks the HWM using the log layer
implementation. The log layer has an invariant where the HWM <= LEO. This mean
that the log layer always sets the HWM to the minimum of HWM and LEO.
This has the side-effect of the local KRaft reporting a HWM that is much
smaller than the leader's HWM when the replica start with an empty log. E.g. a
new broker or the kafka-metadata-shell.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)