You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "flashJd (via GitHub)" <gi...@apache.org> on 2023/05/24 09:55:24 UTC

[GitHub] [hudi] flashJd commented on a diff in pull request #8792: [HUDI-6256] Fix the data table archiving and MDT cleaning config conf…

flashJd commented on code in PR #8792:
URL: https://github.com/apache/hudi/pull/8792#discussion_r1203823105


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metadata/HoodieMetadataWriteUtils.java:
##########
@@ -93,7 +92,7 @@ public static HoodieWriteConfig createMetadataWriteConfig(
             .withCleanerParallelism(parallelism)
             .withCleanerPolicy(HoodieCleaningPolicy.KEEP_LATEST_COMMITS)
             .withFailedWritesCleaningPolicy(failedWritesCleaningPolicy)
-            .retainCommits(DEFAULT_METADATA_CLEANER_COMMITS_RETAINED)
+            .retainCommits(writeConfig.getCleanerCommitsRetained())

Review Comment:
   I've adjust the archiving config in testMetadataTableArchival() to hit the corner case, if use the MDT default clean config: DEFAULT_METADATA_CLEANER_COMMITS_RETAINED, the test will fail,  align the MDT clean config to DT makes the test pass



-- 
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