chenshzh commented on code in PR #5991:
URL: https://github.com/apache/hudi/pull/5991#discussion_r1004101830


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/compact/CompactFunction.java:
##########
@@ -74,14 +74,14 @@ public class CompactFunction extends 
ProcessFunction<CompactionPlanEvent, Compac
 
   public CompactFunction(Configuration conf) {
     this.conf = conf;
-    this.asyncCompaction = OptionsResolver.needsAsyncCompaction(conf);
+    this.asyncCompactionOperation = 
OptionsResolver.needsAsyncCompactionOperation(conf);
   }

Review Comment:
   Yes, agreed. 
   Sync compaction is meaningful for both bounded and and unbounded source, 
because we sometimes will still use compaction in the ingestion job but not a 
separate compaction job for **unbounded** source: 
   But we met cases that async compaction with watermark will cause compaction 
msgs missed. Thus we will keep sync compaction as an option.



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