danny0405 commented on code in PR #6524:
URL: https://github.com/apache/hudi/pull/6524#discussion_r958092196
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/compact/CompactFunction.java:
##########
@@ -130,4 +143,38 @@ private HoodieWriteConfig reloadWriteConfig() throws
Exception {
public void setExecutor(NonThrownExecutor executor) {
this.executor = executor;
}
+
+ private void sendEventByMailBox(Collector<CompactionCommitEvent> collector,
CompactionCommitEvent commitEvent) {
+ mailboxExecutorAdapter.execute(() -> collector.collect(commitEvent),
+ "Send compaction commit event by mailbox.");
+ }
Review Comment:
Thanks, we may need to figure out more simpler way for `collector`
concurrency.
--
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]