Likkey opened a new pull request, #4653:
URL: https://github.com/apache/hadoop/pull/4653
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
Add Precondition.checkArgument() for minimumRedundantVolumes to ensure that
the value is greater than the number of NameNode storage volumes to avoid never
being able to turn off safe mode afterwards.
JIRA:[[HDFS-16697](https://issues.apache.org/jira/browse/HDFS-16697)]
### How was this patch tested?
It is found that “dfs.namenode.resource.checked.volumes.minimum” lacks a
condition check and an associated exception handling mechanism, which makes it
impossible to find the root cause of the impact when a misconfiguration occurs.
This patch provides a check of the configuration items,it will throw a
IllegalArgumentException and detailed error message when the value of
"dfs.namenode.resource.checked.volumes.minimum" is set greater than the number
of NameNode storage volumes to avoid the misconfiguration from affecting the
subsequent operation of the program.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]