You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/08/05 01:48:27 UTC
[GitHub] [hudi] Zouxxyy commented on a diff in pull request #6267: [HUDI-4515] Fix savepoints will be cleaned in keeping latest versions policy
Zouxxyy commented on code in PR #6267:
URL: https://github.com/apache/hudi/pull/6267#discussion_r938377458
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/clean/CleanPlanner.java:
##########
@@ -248,17 +248,17 @@ private Pair<Boolean, List<CleanFileInfo>> getFilesToCleanKeepingLatestVersions(
while (fileSliceIterator.hasNext() && keepVersions > 0) {
// Skip this most recent version
+ fileSliceIterator.next();
+ keepVersions--;
+ }
+ // Delete the remaining files
+ while (fileSliceIterator.hasNext()) {
Review Comment:
Yes, of course
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org