Uh oh!
There was an error while loading. Please reload this page.
HBASE-27795: Define RPC API for cache cleaning - #5525
Conversation
b13033d to
d4baad9CompareApache-HBase
commented
Nov 17, 2023
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 17, 2023
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 17, 2023
💔 -1 overall
This message was automatically generated. |
d4baad9 to
f721c7cCompareApache-HBase
commented
Nov 17, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 18, 2023
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 18, 2023
💔 -1 overall
This message was automatically generated. |
Apache9
left a comment
There was a problem hiding this comment.
What will happen if the region is moved back while we are cleaning its blocks in block cache?
And we only implement the uncache method for BucketCache? What about other types of BlockCache?
| * @param server HRegionServer | ||
| * @return A map of filename and number of blocks evicted. | ||
| */ | ||
| default Optional<Map<String, Integer>> uncacheStaleBlocks(HRegionServer server) { |
There was a problem hiding this comment.
I prefer here we pass an interface, for testing whether a region is available, instead of pass a HRegionServer directly. It will be easier for testing.
And just returning a Map is enough? If we do not clean any blocks, just return an empty map?
| } else { | ||
| blocksEvicted = 0; | ||
| } | ||
| } catch (NotServingRegionException nsre) { |
There was a problem hiding this comment.
Is this the normal path? In the above if condition, we test isAvailable, so why here we could still get a NotServingRegionException?
Kota-SH
commented
Dec 1, 2023
@Apache9 - Thanks for the review.
Thanks, |
No description provided.