You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "HaiyuanZhao (Jira)" <ji...@apache.org> on 2021/06/25 14:14:00 UTC
[jira] [Assigned] (KAFKA-12873) Log truncation due to divergence
should also remove snapshots
[ https://issues.apache.org/jira/browse/KAFKA-12873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
HaiyuanZhao reassigned KAFKA-12873:
-----------------------------------
Assignee: HaiyuanZhao
> 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
> Assignee: HaiyuanZhao
> Priority: Major
>
> 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)