Skip to content

Commit d19728b

Browse files
authored
HBASE-25642 Fix or stop warning about already cached block (#3638)
Our logs have as a fairly common occurrence: 2021-03-05 22:24:31,034 WARN [StoreFileOpener-foo-1] hfile.BlockCacheUtil: Caching an already cached block: blah.bub. This is harmless and can happen in rare cases (see HBASE-8547) Because it is harmless, log at DEBUG level, not WARN. Signed-off-by: Baiqiang Zhao <zhaobaiqiang@apache.org> Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org> Reviewed-by: Rushabh Shah <rushabh.shah@salesforce.com>
1 parent a0864ed commit d19728b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public static boolean shouldReplaceExistingCacheBlock(BlockCache blockCache,
244244
+ "nextBlockOnDiskSize set, Keeping cached block.");
245245
return false;
246246
} else {
247-
LOG.warn("Caching an already cached block: {}. This is harmless and can happen in rare "
247+
LOG.debug("Caching an already cached block: {}. This is harmless and can happen in rare "
248248
+ "cases (see HBASE-8547)",
249249
cacheKey);
250250
return false;

0 commit comments

Comments
 (0)