git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.22@1136209 13f79535-47bb-0310-9956-ffa450edef68
@@ -584,6 +584,9 @@ Release 0.22.0 - Unreleased
HDFS-988. saveNamespace race can corrupt the edits log. (eli)
+ HDFS-2071. Use of isConnected() in DataXceiver is invalid. (Kihwal Lee
+ via todd)
+
Release 0.21.1 - Unreleased
IMPROVEMENTS
@@ -171,7 +171,7 @@ class DataXceiver extends DataTransferProtocol.Receiver
opStartTime = now();
processOp(op, in);
++opsProcessed;
- } while (s.isConnected() && socketKeepaliveTimeout > 0);
+ } while (!s.isClosed() && socketKeepaliveTimeout > 0);
} catch (Throwable t) {
LOG.error(datanode.dnRegistration + ":DataXceiver, at " +
s.toString(), t);