-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-16434. Add opname to read/write lock for remaining operations #3915
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. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
Hi @tasanuma @ayushtkn @Hexiaoqiao , could you please take a look at this. Thanks. |
tasanuma
left a comment
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.
@tomscut Thanks for the PR. This is a good improvement. I left one comment.
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.
How about moving the new methods to RwLock since it has all lock-related methods? Although RwLock is not @InterfaceAudience.Private, I think we can add new methods there if the target version is 3.4.0.
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.
Thanks @tasanuma for your review and comment. I agree with you.
|
💔 -1 overall
This message was automatically generated. |
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.
| namesystem.writeUnlock("datanodeAdminMonitorThread"); | |
| namesystem.writeUnlock("DatanodeAdminMonitorThread"); |
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.
Thanks @tasanuma for your review. I fixed it.
|
#4064 added a new |
Thank you very much. |
|
💔 -1 overall
This message was automatically generated. |
tasanuma
left a comment
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.
LGTM.
|
Thanks for your contribution, @tomscut! |
|
Thanks @tasanuma for your review and merging this. |
JIRA: HDFS-16434.
In this issue at HDFS-10872, we add opname to read and write locks. However, there are still many operations that have not been completed. When analyzing some operations that hold locks for a long time, we can only find specific methods through stack. I suggest that these remaining operations be completed to facilitate later performance optimization.