Likkey opened a new pull request, #5569: URL: https://github.com/apache/hadoop/pull/5569
### Description of PR 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. Add a mechanism to check the value of 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)](https://issues.apache.org/jira/browse/%5BHDFS-16697%5D(https://issues.apache.org/jira/browse/HDFS-16697))](https://issues.apache.org/jira/browse/[HDFS-16697](https://issues.apache.org/jira/browse/HDFS-16697))] ### How was this patch tested? This patch provides a check of the configuration items,it will throw an IllegalArgumentException and a detailed error message when the value is greater than the number of NameNode storage volumes, and printing a warning message in the log in order to solve the problem in time and avoid the misconfiguration from affecting the subsequent operations 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]
