the-other-tim-brown commented on code in PR #12164:
URL: https://github.com/apache/hudi/pull/12164#discussion_r1953218031


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/BaseHoodieWriteClient.java:
##########
@@ -913,11 +913,8 @@ public String startCommit(String actionType, 
HoodieTableMetaClient metaClient) {
       executeUsingTxnManager(Option.empty(), () -> tryUpgrade(metaClient, 
Option.empty()));
     }
 
-    CleanerUtils.rollbackFailedWrites(config.getFailedWritesCleanPolicy(),
-        HoodieTimeline.COMMIT_ACTION, () -> 
tableServiceClient.rollbackFailedWrites());

Review Comment:
   What do you mean by flip the ordering?
   
   Regarding repeated calls, they are not repeated anymore but the code is 
duplicated. This PR consolidates so that we don't miss updating both paths in 
the future.



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