danny0405 commented on code in PR #13852:
URL: https://github.com/apache/hudi/pull/13852#discussion_r2328511298


##########
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/MetadataConversionUtils.java:
##########
@@ -183,7 +183,9 @@ public static HoodieArchivedMetaEntry createMetaWrapper(
     switch (actionType) {
       case HoodieTimeline.CLEAN_ACTION: {
         
archivedMetaWrapper.setHoodieCleanMetadata(CleanerUtils.getCleanerMetadata(metaClient,
 new ByteArrayInputStream(instantDetails.get())));
-        
archivedMetaWrapper.setHoodieCleanerPlan(CleanerUtils.getCleanerPlan(metaClient,
 new ByteArrayInputStream(planBytes.get())));
+        if (planBytes.isPresent()) {
+          
archivedMetaWrapper.setHoodieCleanerPlan(CleanerUtils.getCleanerPlan(metaClient,
 new ByteArrayInputStream(planBytes.get())));

Review Comment:
   yeah, but usually a clean instant can not be archived if it is not complete. 
There is no harm to add this BTW, just want to know the specific use case.



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

Reply via email to