You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jose Armando Garcia Sancio (Jira)" <ji...@apache.org> on 2021/06/01 18:32:00 UTC
[jira] [Created] (KAFKA-12873) Log truncation due to divergence
should also remove snapshots
Jose Armando Garcia Sancio created KAFKA-12873:
--------------------------------------------------
Summary: Log truncation due to divergence should also remove snapshots
Key: KAFKA-12873
URL: https://issues.apache.org/jira/browse/KAFKA-12873
Project: Kafka
Issue Type: Sub-task
Components: log
Reporter: Jose Armando Garcia Sancio
It should not be possible for log truncation to truncate past the high-watermark and we know that snapshots are less than the high-watermark.
Having said that I think we should add code that removes any snapshot that is greater than the log end offset after a log truncation. Currently the code that does log truncation is in `KafkaMetadataLog::truncateTo`.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)