gejinzh commented on code in PR #12849:
URL: https://github.com/apache/hudi/pull/12849#discussion_r1961333690
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteOperatorCoordinator.java:
##########
@@ -449,6 +449,10 @@ private void handleBootstrapEvent(WriteMetadataEvent
event) {
LOG.warn("Reuse current pending Instant {} with {} operationType, "
+ "ignoring empty bootstrap event.", this.instant,
WriteOperationType.INSERT.value());
reset();
+ if (event.isRestored()) {
Review Comment:
If there is no data flush in append mode, instant will also be reused here;
And the coordinator will send an act event at ```notifyCheckpointComplete```;
So without this condition, two act events will be sent;
--
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]