liever18 opened a new pull request #3856:
URL: https://github.com/apache/hadoop/pull/3856


   
   ### Description of PR
   Add Preconditions.checkArgument() to ensure the leaseRecheckIntervalMs 
cannot get set to a value less than or equal to zero. 
   
   It avoids negative intervals that cause LeaseMonitor to be in a constant 
state of fast printing exception logs
   
   JIRA: [HDFS-16408](https://issues.apache.org/jira/browse/HDFS-16408)
   
   ### How was this patch tested?
   when the configuration item 'dfs.namenode.lease-recheck-interval-ms' is 
accidentally set to a negative number, origin code will print warning log again 
and again immediately. This problem can be eliminated after using this patch.
   
   


-- 
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