You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "yonghua jian (Jira)" <ji...@apache.org> on 2022/08/04 09:17:00 UTC
[jira] [Commented] (HUDI-4537) why hudi clean service actually retain CLEAN_RETAIN_COMMITS + 1
[ 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)