You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2021/07/30 13:34:44 UTC
[hbase] branch master updated: HBASE-26105 Rectify the expired TODO
comment in CombinedBC. (#3509)
This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new ed4b51a HBASE-26105 Rectify the expired TODO comment in CombinedBC. (#3509)
ed4b51a is described below
commit ed4b51a6b705679522d50c8057a2161d82497454
Author: YutSean <yu...@gmail.com>
AuthorDate: Fri Jul 30 21:34:14 2021 +0800
HBASE-26105 Rectify the expired TODO comment in CombinedBC. (#3509)
Signed-off-by: Duo Zhang <zh...@apache.org>
---
.../main/java/org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.java | 2 --
1 file changed, 2 deletions(-)
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.java
index f5da4f2..571ae07 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.java
@@ -78,8 +78,6 @@ public class CombinedBlockCache implements ResizableBlockCache, HeapSize {
@Override
public Cacheable getBlock(BlockCacheKey cacheKey, boolean caching,
boolean repeat, boolean updateCacheMetrics) {
- // TODO: is there a hole here, or just awkwardness since in the lruCache getBlock
- // we end up calling l2Cache.getBlock.
// We are not in a position to exactly look at LRU cache or BC as BlockType may not be getting
// passed always.
boolean existInL1 = l1Cache.containsBlock(cacheKey);