[ 
https://issues.apache.org/jira/browse/KAFKA-14241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18042991#comment-18042991
 ] 

Luke Chen edited comment on KAFKA-14241 at 12/5/25 7:31 AM:
------------------------------------------------------------

[~jagsancio], do you have any update on this? Maybe we don't need the 
`snapshot` cleanup policy anymore because it works fine currently for the 
time/size cleanup.


was (Author: showuon):
[~jagsancio], do you have any update on this? I think this is important to 
avoid old snapshots staying in the disk forever. Do you need help on this?

> Implement the snapshot cleanup policy
> -------------------------------------
>
>                 Key: KAFKA-14241
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14241
>             Project: Kafka
>          Issue Type: Sub-task
>          Components: kraft
>            Reporter: Jose Armando Garcia Sancio
>            Assignee: Jose Armando Garcia Sancio
>            Priority: Major
>
> It looks like delete policy needs to be set to either delete or compact:
> {code:java}
>         .define(CleanupPolicyProp, LIST, Defaults.CleanupPolicy, 
> ValidList.in(LogConfig.Compact, LogConfig.Delete), MEDIUM, CompactDoc,
>           KafkaConfig.LogCleanupPolicyProp)
> {code}
> Neither is correct for KRaft topics. KIP-630 talks about adding a third 
> policy called snapshot:
> {code:java}
> The __cluster_metadata topic will have snapshot as the cleanup.policy. {code}
> [https://cwiki.apache.org/confluence/display/KAFKA/KIP-630%3A+Kafka+Raft+Snapshot#KIP630:KafkaRaftSnapshot-ProposedChanges]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to