[
https://issues.apache.org/jira/browse/HUDI-4537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17575147#comment-17575147
]
yonghua jian commented on HUDI-4537:
------------------------------------
CleanPlanner.java:
if (policy == HoodieCleaningPolicy.KEEP_LATEST_COMMITS) {
// Dont delete the latest commit and {color:#FF0000}also the last
commit before the earliest commit we{color}
{color:#FF0000} // are retaining{color}
// The window of commit retain == max query run time. So a query
could be running which
// still
// uses this file.
if (fileCommitTime.equals(lastVersion) ||
{color:#FF0000}(fileCommitTime.equals(lastVersionBeforeEarliestCommitToRetain)){color})
{
// move on to the next file
continue;
}
> why hudi clean service actually retain CLEAN_RETAIN_COMMITS + 1
> ---------------------------------------------------------------
>
> Key: HUDI-4537
> URL: https://issues.apache.org/jira/browse/HUDI-4537
> Project: Apache Hudi
> Issue Type: Wish
> Reporter: yonghua jian
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)