XComp commented on code in PR #22987: URL: https://github.com/apache/flink/pull/22987#discussion_r1263387814
########## flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestClient.java: ########## @@ -501,6 +501,14 @@ 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()) { + channelFuture.completeExceptionally( + new IOException("Netty connection failed instantly. Shutting down?")); + } Review Comment: `IOException` seems to be reasonable. At least, I can't come up with a better alternative :thinking: -- 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