yunfengzhou-hub commented on code in PR #20275:
URL: https://github.com/apache/flink/pull/20275#discussion_r926266725


##########
flink-runtime/src/main/java/org/apache/flink/runtime/operators/coordination/OperatorCoordinatorHolder.java:
##########
@@ -308,6 +335,26 @@ private void checkpointCoordinatorInternal(
         }
     }
 
+    private void closeGateways(final long checkpointId, final 
CompletableFuture<byte[]> result) {
+        Set<CloseableSubtaskGateway> closedGateways = new HashSet<>();
+        for (CloseableSubtaskGateway gateway : subtaskGatewayMap.values()) {
+            if (!gateway.tryCloseGateway(checkpointId)) {
+                
closedGateways.forEach(CloseableSubtaskGateway::openGatewayAndUnmarkCheckpoint);

Review Comment:
   I agree. I'll make it throw exception here.



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