HDFS-11645. DataXceiver thread should log the actual error when getting InvalidMagicNumberException. Contributed by Chen Liang.

This commit is contained in:
Anu Engineer 2017-04-12 11:40:58 -07:00
parent d4c01dde49
commit abce613356
1 changed files with 2 additions and 2 deletions

View File

@ -241,12 +241,12 @@ class DataXceiver extends Receiver implements Runnable {
LOG.info("Failed to read expected encryption handshake from client " +
"at " + peer.getRemoteAddressString() + ". Perhaps the client " +
"is running an older version of Hadoop which does not support " +
"encryption");
"encryption", imne);
} else {
LOG.info("Failed to read expected SASL data transfer protection " +
"handshake from client at " + peer.getRemoteAddressString() +
". Perhaps the client is running an older version of Hadoop " +
"which does not support SASL data transfer protection");
"which does not support SASL data transfer protection", imne);
}
return;
}