Likkey opened a new pull request, #4849:
URL: https://github.com/apache/hadoop/pull/4849

   <!--
     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
   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/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]

Reply via email to