-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-15781. Add metrics for how blocks are moved in replaceBlock. #2704
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. |
private MutableCounterLong replaceBlockOpOnSameHostWithCopy; | ||
@Metric("Number of replaceBlock ops between" + | ||
" storage types on same disk mount using hardlink") | ||
private MutableCounterLong replaceBlockOpOnSameHostWithHardlink; |
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.
Both "withHardlink" and "withCopy" are our block movement implementation. If in the future we change our implementation these names may no long hold. How about we change the metric names to "OnSameHost" and "OnSameMount" ? But then we need to think more about their semantic meanings. Maybe "OnSameHost" also includes the "OnSameMount"... Thoughts?
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.
Yeah sounds good, OnSameHost can include OnSameMount actually. I will make the change.
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
The current change looks good to me. +1 @LeonGao91 Could you please re-trigger the build to pass the checks? |
Thanks @Jing9 ! Build is good now. |
No description provided.