HDFS-2391. Newly set BalancerBandwidth value is not displayed anywhere. (harsh)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1342520 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Harsh J 2012-05-25 07:04:35 +00:00
parent e62a76a40c
commit befd45fcb1
2 changed files with 6 additions and 0 deletions

View File

@ -79,6 +79,9 @@ Trunk (unreleased changes)
HDFS-3197. Incorrect class comments in a few tests. (Andy Isaacson via eli)
HDFS-2391. Newly set BalancerBandwidth value is not displayed anywhere.
(harsh)
OPTIMIZATIONS
HDFS-2834. Add a ByteBuffer-based read API to DFSInputStream.

View File

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