-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29707 Fix region cache % metrics miss calculation #7451
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
Change-Id: I436c20b079c34e7df9b90685936848ebb6d7236b
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Change-Id: I9d76998db2d23a0151580cba7e7a95bb7eb2ff18
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
kgeisz
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. I just have on question and a nit comment
|
|
||
| public static boolean isHFileArchived(Path path) { | ||
| Path currentDir = path; | ||
| for (int i = 0; i < 6; i++) { |
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.
Why does this always iterate 6 times? My assumption is it's because that's the max depth of an archived file. Can that ever be more than 6?
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.
I don't think so.
| Thread.sleep(1000); | ||
| } | ||
| // HFileLink use the path of the target file to create a reader, but the target file is in the | ||
| // archive, so it wasn't cached previously and should ba cached when we open the link. |
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.
nit
| // archive, so it wasn't cached previously and should ba cached when we open the link. | |
| // archive, so it wasn't cached previously and should be cached when we open the link. |
Change-Id: Ieb650a05c5242a0dc977a98fe59f362b3c9f3f8b
Signed-off-by: Peter Somogyi <psomogyi@apache.org> Reviewed-by: Kevin Geiszler <kevin.j.geiszler@gmail.com>
No description provided.