You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "apurtell (via GitHub)" <gi...@apache.org> on 2023/05/18 22:39:16 UTC
[GitHub] [hbase] apurtell commented on a diff in pull request #5239: HBASE-27867 Close the L1 victim handler race
apurtell commented on code in PR #5239:
URL: https://github.com/apache/hbase/pull/5239#discussion_r1198367749
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/LruBlockCache.java:
##########
@@ -592,10 +593,27 @@ public int evictBlocksByHfileName(String hfileName) {
* @return the heap size of evicted block
*/
protected long evictBlock(LruCachedBlock block, boolean evictedByEvictionProcess) {
- LruCachedBlock previous = map.remove(block.getCacheKey());
- if (previous == null) {
+ // We need something effectively final for the lambda.
+ final AtomicBoolean evicted = new AtomicBoolean(false);
Review Comment:
MutableBoolean would be fine.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hbase.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org