vinothchandar commented on a change in pull request #3698:
URL: https://github.com/apache/hudi/pull/3698#discussion_r714762403



##########
File path: 
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/SparkRDDWriteClient.java
##########
@@ -318,6 +323,7 @@ protected void completeCompaction(HoodieCommitMetadata 
metadata, JavaRDD<WriteSt
   @Override
   protected JavaRDD<WriteStatus> compact(String compactionInstantTime, boolean 
shouldComplete) {
     HoodieSparkTable<T> table = HoodieSparkTable.create(config, context);
+    table.getHoodieView().sync();
     preWrite(compactionInstantTime, WriteOperationType.COMPACT, 
table.getMetaClient());

Review comment:
       seems like something we should do always anyway. do you see any issues 
around how this may not work well for Flink?




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