danny0405 commented on code in PR #6796:
URL: https://github.com/apache/hudi/pull/6796#discussion_r979968718
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteOperatorCoordinator.java:
##########
@@ -410,6 +414,12 @@ private void handleBootstrapEvent(WriteMetadataEvent
event) {
if (Arrays.stream(eventBuffer).allMatch(evt -> evt != null &&
evt.isBootstrap())) {
// start to initialize the instant.
initInstant(event.getInstantTime());
+ } else if (event.isBootstrap() && subtaskResetStatus[event.getTaskID()] ==
1
+ && !Arrays.stream(subtaskResetStatus).allMatch(st -> st == 1)) {
+ // handle partial failover, if only a subset of subtasks send bootstrap
event, hence not all subtasks need to restore,
+ // then these subtasks can reuse previous instant to write
Review Comment:
The full re-start failover is included in this check condition :)
--
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]