HBASE-25642 Fix or stop warning about already cached block (#3638)
commit122efbcd822f3a2164ff326d798abb6def9edacd
authorAndrew Purtell <apurtell@apache.org>
Tue, 31 Aug 2021 16:25:31 +0000 (31 09:25 -0700)
committerAndrew Purtell <apurtell@apache.org>
Tue, 31 Aug 2021 16:26:14 +0000 (31 09:26 -0700)
tree1d83685ea7145b994cb773ac403f6a41050200b0
parent133237582f980cbf9b9f9a2a447e3ad372f51085
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>
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheUtil.java