HDFS-9443. Disabling HDFS client socket cache causes logging message printed to console for CLI commands. Contributed by Chris Nauroth.

This commit is contained in:
Haohui Mai 2015-11-22 15:03:35 -08:00
parent a6f20d80de
commit 6039059c37
2 changed files with 4 additions and 1 deletions

View File

@ -100,7 +100,7 @@ public class PeerCache {
this.expiryPeriod = e; this.expiryPeriod = e;
if (capacity == 0 ) { if (capacity == 0 ) {
LOG.info("SocketCache disabled."); LOG.debug("SocketCache disabled.");
} else if (expiryPeriod == 0) { } else if (expiryPeriod == 0) {
throw new IllegalStateException("Cannot initialize expiryPeriod to " + throw new IllegalStateException("Cannot initialize expiryPeriod to " +
expiryPeriod + " when cache is enabled."); expiryPeriod + " when cache is enabled.");

View File

@ -2332,6 +2332,9 @@ Release 2.8.0 - UNRELEASED
HDFS-9434. Recommission a datanode with 500k blocks may pause NN for 30 HDFS-9434. Recommission a datanode with 500k blocks may pause NN for 30
seconds for printing info log messags. (szetszwo) seconds for printing info log messags. (szetszwo)
HDFS-9443. Disabling HDFS client socket cache causes logging message
printed to console for CLI commands. (Chris Nauroth via wheat9)
Release 2.7.3 - UNRELEASED Release 2.7.3 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES