qinf commented on code in PR #24539: URL: https://github.com/apache/flink/pull/24539#discussion_r1535713733
########## flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/ResourceManager.java: ########## @@ -1179,6 +1179,14 @@ protected Optional<WorkerType> closeTaskManagerConnection( slotManager.unregisterTaskManager(workerRegistration.getInstanceID(), cause); clusterPartitionTracker.processTaskExecutorShutdown(resourceID); + jobManagerRegistrations + .values() + .forEach( + jobManagerRegistration -> + jobManagerRegistration + .getJobManagerGateway() + .disconnectTaskManager(resourceID, cause)); Review Comment: @1996fanrui I have added a unit test. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org