José Armando García Sancio created KAFKA-14825:
--------------------------------------------------
Summary: Handle divergence between KRaft's HWM and Log's HWM
Key: KAFKA-14825
URL: https://issues.apache.org/jira/browse/KAFKA-14825
Project: Kafka
Issue Type: Task
Components: kraft
Reporter: José Armando García Sancio
Assignee: José Armando García Sancio
The types in the UnifiedLog and KafkaMetadataLog allow for the log's HWM to
diverge from the KRaft client's HWM. In practice this is should not be possible
since the KRaft client is the only component that write to the log layer.
The code in KafkaMetadataLog has a FIXME comment related to this. We should
remove the comment and fix the code to handle divergence in the HWM.
There are a least two options:
# Change ReplicatedLog::updateHighWatermark to return the actual HWM and deal
with the returned value in the KRaft client.
# Throw an invalid state exception if the KRaft HWM doesn't match the Log's
HWM.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)