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>
This commit is contained in:
Andrew Purtell 2021-08-31 09:25:31 -07:00
parent 133237582f
commit 122efbcd82
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ public class BlockCacheUtil {
+ "nextBlockOnDiskSize set, Keeping cached block."); + "nextBlockOnDiskSize set, Keeping cached block.");
return false; return false;
} else { } else {
LOG.warn("Caching an already cached block: {}. This is harmless and can happen in rare " LOG.debug("Caching an already cached block: {}. This is harmless and can happen in rare "
+ "cases (see HBASE-8547)", + "cases (see HBASE-8547)",
cacheKey); cacheKey);
return false; return false;