From 062887690108453648bb8ff6ca9a6d1ecb54a5b0 Mon Sep 17 00:00:00 2001 From: Eli Collins Date: Sun, 8 Jul 2012 22:06:25 +0000 Subject: [PATCH] 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 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../org/apache/hadoop/hdfs/server/datanode/BPOfferService.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 5fe82751fba..d7cf30f4623 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -104,6 +104,9 @@ Release 2.0.1-alpha - UNRELEASED HDFS-2988. Improve error message when storage directory lock fails (Miomir Boljanovic via harsh) + HDFS-2391. Newly set BalancerBandwidth value is not displayed anywhere. + (harsh) + OPTIMIZATIONS HDFS-2982. Startup performance suffers when there are many edit log diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPOfferService.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPOfferService.java index 69efdd0a3bc..75ee2a43a6a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPOfferService.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPOfferService.java @@ -615,6 +615,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;