-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-16672. Fix lease interval comparison in BlockReportLeaseManager #4598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
💔 -1 overall
This message was automatically generated. |
Help to review when you are free. Thanks. |
@cxzl25 Thanks involve me here. I don't get this improvement. It seems that |
In |
Sorry for the late response. But I did not get why System.nanoTime() may return a negative number. Do you mind to offer any jdk information? Thanks.
|
https://docs.oracle.com/javase/8/docs/api/index.html public static long nanoTime()
|
OK, Got it, Thanks. LGTM. +1 from me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM.
@cxzl25 If you rebase this and if the build comes green I can commit this
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
…4598). Contributed by dzcxzl. Reviewed-by: He Xiaoqiao <hexiaoqiao@apache.org> Signed-off-by: Ayush Saxena <ayushsaxena@apache.org
Description of PR
monotonicNowMs is generated by System.nanoTime(), direct comparison is not recommended.
org.apache.hadoop.hdfs.server.blockmanagement.BlockReportLeaseManager#pruneIfExpired
How was this patch tested?
exist UT
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?