HDFS-14056. Fix error messages in HDFS-12716. Contributed by Ayush Saxena. (cherry picked from commit 886b935630bf2d46f4c6773de013c093d2e44c38)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/c3f0681f Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/c3f0681f Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/c3f0681f Branch: refs/heads/branch-2 Commit: c3f0681f9989116aac3c021b8cc31875dc74ef2b Parents: bc4098e Author: Vinayakumar B <vinayakum...@apache.org> Authored: Fri Nov 16 18:01:13 2018 +0530 Committer: Vinayakumar B <vinayakum...@apache.org> Committed: Fri Nov 16 18:02:10 2018 +0530 ---------------------------------------------------------------------- .../java/org/apache/hadoop/hdfs/server/datanode/DataNode.java | 5 +++-- .../hadoop-hdfs/src/main/resources/hdfs-default.xml | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/c3f0681f/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java index 80a7ca2..1fab84a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java @@ -294,7 +294,8 @@ public class DataNode extends ReconfigurableBase static final int CURRENT_BLOCK_FORMAT_VERSION = 1; public static final int MAX_VOLUME_FAILURE_TOLERATED_LIMIT = -1; - public static final String MAX_VOLUME_FAILURES_TOLERATED_MSG = "should be greater than -1"; + public static final String MAX_VOLUME_FAILURES_TOLERATED_MSG = + "should be greater than or equal to -1"; /** A list of property that are reconfigurable at runtime. */ @@ -1362,7 +1363,7 @@ public class DataNode extends ReconfigurableBase || volFailuresTolerated >= volsConfigured) { throw new DiskErrorException("Invalid value configured for " + "dfs.datanode.failed.volumes.tolerated - " + volFailuresTolerated - + ". Value configured is either greater than -1 or >= " + + ". Value configured is either less than -1 or >= " + "to the number of configured volumes (" + volsConfigured + ")."); } http://git-wip-us.apache.org/repos/asf/hadoop/blob/c3f0681f/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml b/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml index 5802fce..0ce3bd9 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml @@ -1222,8 +1222,8 @@ <description>The number of volumes that are allowed to fail before a datanode stops offering service. By default any volume failure will cause a datanode to shutdown. - The range of the value is -1 now, -1 represents the minimum - of volume valids is 1. + The value should be greater than or equal to -1 , -1 represents minimum + 1 valid volume. </description> </property> --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org