prashantwason commented on a change in pull request #3427:
URL: https://github.com/apache/hudi/pull/3427#discussion_r687984903



##########
File path: 
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/AbstractHoodieWriteClient.java
##########
@@ -403,7 +403,9 @@ protected void preWrite(String instantTime, 
WriteOperationType writeOperationTyp
         .isPresent()
         ? Option.of(lastCompletedTxnAndMetadata.get().getLeft()) : 
Option.empty());
     try {
-      syncTableMetadata();
+      if (writeOperationType != WriteOperationType.CLUSTER && 
writeOperationType != WriteOperationType.COMPACT) {

Review comment:
       What about AsyncClean? Should't we instead reverse the check:
   
   if (writeOperationType == COMMIT or writeOperationType == DELTACOMMIT) {
    ...}
   
   




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