danny0405 commented on code in PR #17996:
URL: https://github.com/apache/hudi/pull/17996#discussion_r2726352471
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/timeline/versioning/v2/LSMTimelineWriter.java:
##########
@@ -329,9 +329,11 @@ public void compactFiles(List<String> candidateFiles,
String compactedFileName)
* @param context HoodieEngineContext used for parallelize to delete
obsolete files if necessary.
*/
public void clean(HoodieEngineContext context, int compactedVersions) throws
IOException {
- // if there are more than 3 version of snapshots, clean the oldest files.
+ int versionRetained = config.getTimelineManifestVersionRetained();
+ log.info("Starting cleaning obsolete files, retaining last ({} + {})
manifest versions.", versionRetained, compactedVersions);
Review Comment:
retaining last -> retaining latest
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]