HDFS-2391. Newly set BalancerBandwidth value is not displayed anywhere. Contributed by Harsh J

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1358850 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eli Collins 2012-07-08 22:06:25 +00:00
parent b4c8c50456
commit 0628876901
2 changed files with 6 additions and 0 deletions

View File

@ -104,6 +104,9 @@ Release 2.0.1-alpha - UNRELEASED
HDFS-2988. Improve error message when storage directory lock fails HDFS-2988. Improve error message when storage directory lock fails
(Miomir Boljanovic via harsh) (Miomir Boljanovic via harsh)
HDFS-2391. Newly set BalancerBandwidth value is not displayed anywhere.
(harsh)
OPTIMIZATIONS OPTIMIZATIONS
HDFS-2982. Startup performance suffers when there are many edit log HDFS-2982. Startup performance suffers when there are many edit log

View File

@ -615,6 +615,9 @@ assert getBlockPoolId().equals(bp) :
if (bandwidth > 0) { if (bandwidth > 0) {
DataXceiverServer dxcs = DataXceiverServer dxcs =
(DataXceiverServer) dn.dataXceiverServer.getRunnable(); (DataXceiverServer) dn.dataXceiverServer.getRunnable();
LOG.info("Updating balance throttler bandwidth from "
+ dxcs.balanceThrottler.getBandwidth() + " bytes/s "
+ "to: " + bandwidth + " bytes/s.");
dxcs.balanceThrottler.setBandwidth(bandwidth); dxcs.balanceThrottler.setBandwidth(bandwidth);
} }
break; break;