warrenzhu25 commented on code in PR #41071: URL: https://github.com/apache/spark/pull/41071#discussion_r1197093878
########## common/network-common/src/main/java/org/apache/spark/network/server/TransportChannelHandler.java: ########## @@ -163,14 +163,11 @@ public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exc if (e.state() == IdleState.ALL_IDLE && isActuallyOverdue) { if (responseHandler.hasOutstandingRequests()) { String address = getRemoteAddress(ctx.channel()); - logger.error("Connection to {} has been quiet for {} ms while there are outstanding " + - "requests. Assuming connection is dead; please adjust" + - " spark.{}.io.connectionTimeout if this is wrong.", - address, requestTimeoutNs / 1000 / 1000, transportContext.getConf().getModuleName()); - client.timeOut(); - ctx.close(); Review Comment: if `closeIdleConnection` is `true`, idle connection still be closed. If false, the client will wait forever. I have followup change to allow user to config `closeIdleConnection` and `requestTimeout`. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org