-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-26083 In branch-2 & branch-1 L1 miss metric is always 0 when using CombinedBlockCache #3473
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
…ing CombinedBlockCache
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
I don't understand this part of code. But I'm curious: does it mean the bug no longer exist in the master branch? |
In the master branch, in ComebinedBlockCache getBlock method, it will check if the block is metablock or not and check it in L1 or L2. This will make the metric work normal. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
There is one thing to note public Cacheable getBlock(BlockCacheKey cacheKey, boolean caching, boolean repeat, In some code paths, we dont pass a blockType. It will come as null. That time we follow the old method of check for key in cache and call get. So we can think about another way around? Can we think about containsBlock() deal with metric too? Need to be careful though. Even in master, the metric what we get is not accurate. It may be better than 0% miss rate. But not correct |
Added metric update into containsBlock, but it looks ugly.... |
Have changed to a less ugly way to update the metric in the latest commit. Hope it can pass the UTs. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.java
Outdated
Show resolved
Hide resolved
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.java
Outdated
Show resolved
Hide resolved
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
…ing CombinedBlockCache (#3473) Signed-off-by Anoop Sam John <anoopsamjohn@apache.org> Signed-off-by Reid Chan <reidchan@apache.org>
…ing CombinedBlockCache (#3473) Signed-off-by Anoop Sam John <anoopsamjohn@apache.org> Signed-off-by Reid Chan <reidchan@apache.org>
https://issues.apache.org/jira/browse/HBASE-26083