hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aajis...@apache.org
Subject hadoop git commit: HDFS-10628. Log HDFS Balancer exit message to its own log. Contributed by Jiayi Zhou.
Date Fri, 15 Jul 2016 18:43:44 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 e34e1aa4f -> 617149837


HDFS-10628. Log HDFS Balancer exit message to its own log. Contributed by Jiayi Zhou.

(cherry picked from commit c48e9d608c1daf7826f2e738c0a67d8eab79d8de)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/61714983
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/61714983
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/61714983

Branch: refs/heads/branch-2
Commit: 617149837531062e4e1ee9eeb50a324766b14c60
Parents: e34e1aa
Author: Akira Ajisaka <aajisaka@apache.org>
Authored: Fri Jul 15 11:42:44 2016 -0700
Committer: Akira Ajisaka <aajisaka@apache.org>
Committed: Fri Jul 15 11:43:27 2016 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/61714983/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java
index c515fb9..94d90db 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java
@@ -604,6 +604,8 @@ public class Balancer {
       if (!runDuringUpgrade && nnc.isUpgrading()) {
         System.err.println("Balancer exiting as upgrade is not finalized, "
             + "please finalize the HDFS upgrade before running the balancer.");
+        LOG.error("Balancer exiting as upgrade is not finalized, "
+            + "please finalize the HDFS upgrade before running the balancer.");
         return newResult(ExitStatus.UNFINALIZED_UPGRADE, bytesLeftToMove, -1);
       }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message