vinothchandar commented on a change in pull request #3427:
URL: https://github.com/apache/hudi/pull/3427#discussion_r688006417
##########
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:
So, the check is cumbersome to write otherwise. `writeOperationType` is
upsert, delete, insert etc. not the action type. Will keep as-is
--
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]