Uh oh!
There was an error while loading. Please reload this page.
HBASE-26083 In branch-2 & branch-1 L1 miss metric is always 0 when using CombinedBlockCache - #3473
Conversation
…ing CombinedBlockCache
Apache-HBase
commented
Jul 12, 2021
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 12, 2021
💔 -1 overall
This message was automatically generated. |
jojochuang
commented
Jul 12, 2021
I don't understand this part of code. But I'm curious: does it mean the bug no longer exist in the master branch? |
YutSean
commented
Jul 13, 2021
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. |
Apache-HBase
commented
Jul 13, 2021
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 13, 2021
💔 -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 |
YutSean
commented
Jul 13, 2021
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. |
Apache-HBase
commented
Jul 13, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 13, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 13, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 13, 2021
🎊 +1 overall
This message was automatically generated. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Apache-HBase
commented
Jul 14, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 14, 2021
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 15, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 15, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 15, 2021
🎊 +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