patricklucas commented on code in PR #22987: URL: https://github.com/apache/flink/pull/22987#discussion_r1263446778
########## flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestClient.java: ########## @@ -501,6 +501,22 @@ private <P extends ResponseBody> CompletableFuture<P> submitRequest( } }); + // [FLINK-32583] If connectFuture failed instantly but channelFuture is unresolved, it may + // mean the executor service Netty is using has shut down, in which case the above listener + // to complete channelFuture will never run + if (connectFuture.isDone() && !connectFuture.isSuccess() && !channelFuture.isDone()) { + final String message; + if (!isRunning.get()) { Review Comment: Can do. Since the client being closed is the likeliest reason we hit this, I preferred to put that one first. "if not running" -- 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