HDFS-14056. Fix error messages in HDFS-12716. Contributed by Ayush Saxena.
(cherry picked from commit 886b935630bf2d46f4c6773de013c093d2e44c38)
This commit is contained in:
parent
71a6ec6058
commit
7a2a806213
|
@ -294,7 +294,8 @@ public class DataNode extends ReconfigurableBase
|
||||||
|
|
||||||
static final int CURRENT_BLOCK_FORMAT_VERSION = 1;
|
static final int CURRENT_BLOCK_FORMAT_VERSION = 1;
|
||||||
public static final int MAX_VOLUME_FAILURE_TOLERATED_LIMIT = -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. */
|
/** A list of property that are reconfigurable at runtime. */
|
||||||
private static final List<String> RECONFIGURABLE_PROPERTIES =
|
private static final List<String> RECONFIGURABLE_PROPERTIES =
|
||||||
|
@ -1405,7 +1406,7 @@ public class DataNode extends ReconfigurableBase
|
||||||
|| volFailuresTolerated >= volsConfigured) {
|
|| volFailuresTolerated >= volsConfigured) {
|
||||||
throw new DiskErrorException("Invalid value configured for "
|
throw new DiskErrorException("Invalid value configured for "
|
||||||
+ "dfs.datanode.failed.volumes.tolerated - " + volFailuresTolerated
|
+ "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 + ").");
|
+ "to the number of configured volumes (" + volsConfigured + ").");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1276,8 +1276,8 @@
|
||||||
<description>The number of volumes that are allowed to
|
<description>The number of volumes that are allowed to
|
||||||
fail before a datanode stops offering service. By default
|
fail before a datanode stops offering service. By default
|
||||||
any volume failure will cause a datanode to shutdown.
|
any volume failure will cause a datanode to shutdown.
|
||||||
The range of the value is -1 now, -1 represents the minimum
|
The value should be greater than or equal to -1 , -1 represents minimum
|
||||||
of volume valids is 1.
|
1 valid volume.
|
||||||
</description>
|
</description>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue