lindong28 commented on code in PR #22931:
URL: https://github.com/apache/flink/pull/22931#discussion_r1270207481
##########
flink-runtime/src/main/java/org/apache/flink/runtime/operators/coordination/OperatorCoordinatorHolder.java:
##########
@@ -164,6 +167,15 @@ public void lazyInitialize(
context.lazyInitialize(
globalFailureHandler, mainThreadExecutor,
operatorCoordinatorMetricGroup);
+ OperatorCoordinator rootCoordinator = coordinator;
+ if (coordinator instanceof RecreateOnResetOperatorCoordinator) {
+ rootCoordinator =
+ ((RecreateOnResetOperatorCoordinator)
rootCoordinator).getInternalCoordinator();
+ }
+ if (rootCoordinator instanceof SourceCoordinator) {
+ ((SourceCoordinator<?, ?>)
rootCoordinator).lazyInitialize(checkpointCoordinator);
Review Comment:
I left another comment regarding how to simplify the implementation.
--
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]