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:
parent
133237582f
commit
122efbcd82
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue