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


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/BaseHoodieWriteClient.java:
##########
@@ -207,25 +208,25 @@ public boolean commit(String instantTime, O 
writeStatuses, Option<Map<String, St
   public boolean commit(String instantTime, O writeStatuses, 
Option<Map<String, String>> extraMetadata,
                         String commitActionType, Map<String, List<String>> 
partitionToReplacedFileIds) {
     return commit(instantTime, writeStatuses, extraMetadata, commitActionType, 
partitionToReplacedFileIds,
-        Option.empty());
+        Option.empty()).isSuccess();
   }
 
-  public abstract boolean commit(String instantTime, O writeStatuses, 
Option<Map<String, String>> extraMetadata,
+  public abstract CommitStatus commit(String instantTime, O writeStatuses, 
Option<Map<String, String>> extraMetadata,

Review Comment:
   The `CommitStatus` can be eliminated if we just return an option of 
`HoodieCommitMetadata` ?, empty means a failure.



-- 
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-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to