HADOOP-10125. Merging change r1558575 from trunk

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1558952 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brandon Li 2014-01-16 23:01:53 +00:00
parent ce71fa1931
commit e6d2096a18
2 changed files with 7 additions and 0 deletions

View File

@ -229,6 +229,9 @@ Release 2.4.0 - UNRELEASED
HADOOP-10146. Workaround JDK7 Process fd close bug (daryn)
HADOOP-10125. no need to process RPC request if the client connection
has been dropped (Ming Ma via brandonli)
Release 2.3.0 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -1935,6 +1935,10 @@ public abstract class Server {
if (LOG.isDebugEnabled()) {
LOG.debug(Thread.currentThread().getName() + ": " + call + " for RpcKind " + call.rpcKind);
}
if (!call.connection.channel.isOpen()) {
LOG.info(Thread.currentThread().getName() + ": skipped " + call);
continue;
}
String errorClass = null;
String error = null;
RpcStatusProto returnStatus = RpcStatusProto.SUCCESS;