hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject hadoop git commit: HDFS-8821. Explain message "Operation category X is not supported in state standby". Contributed by Gautam Gopalakrishnan.
Date Fri, 31 Jul 2015 03:29:47 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 95e71772c -> 212b8b919


HDFS-8821. Explain message "Operation category X is not supported in state standby". Contributed
by Gautam Gopalakrishnan.

(cherry picked from commit c5caa25b8f2953e2b7a9d2c9dcbdbf1fed95c10b)


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

Branch: refs/heads/branch-2
Commit: 212b8b919d973cc99c23fbe394066616f81739bd
Parents: 95e7177
Author: Harsh J <harsh@cloudera.com>
Authored: Fri Jul 31 08:58:22 2015 +0530
Committer: Harsh J <harsh@cloudera.com>
Committed: Fri Jul 31 08:59:22 2015 +0530

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt                       | 3 +++
 .../org/apache/hadoop/hdfs/server/namenode/ha/StandbyState.java   | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/212b8b91/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index be76ad3..79aebf7 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -14,6 +14,9 @@ Release 2.8.0 - UNRELEASED
 
   IMPROVEMENTS
 
+    HDFS-8821. Explain message "Operation category X is not supported
+    in state standby" (Gautam Gopalakrishnan via harsh)
+
     HDFS-3918. EditLogTailer shouldn't log WARN when other node
     is in standby mode (todd via harsh)
 

http://git-wip-us.apache.org/repos/asf/hadoop/blob/212b8b91/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/StandbyState.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/StandbyState.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/StandbyState.java
index 60e8371..d782bdf 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/StandbyState.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/StandbyState.java
@@ -82,8 +82,9 @@ public class StandbyState extends HAState {
         (op == OperationCategory.READ && context.allowStaleReads())) {
       return;
     }
+    String faq = ". Visit https://s.apache.org/sbnn-error";
     String msg = "Operation category " + op + " is not supported in state "
-        + context.getState();
+        + context.getState() + faq;
     throw new StandbyException(msg);
   }
 


Mime
View raw message