cxzl25 commented on PR #4598: URL: https://github.com/apache/hadoop/pull/4598#issuecomment-1200775196
> I don't get this improvement. It seems that `System.nanoTime()` in single thread then compare. Do you meet any issue here? Thanks. `System.nanoTime()`may return a negative number, the comparison here may be wrong. In `LeaseManager.Lease#expiredHardLimit()` we use two nanotimes to subtract. This is consistent with the usage of nanoTime recommended by JDK. -- 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]
