HBASE-8547. Fix java.lang.RuntimeException: Cached an already cached block (Addendum to add better log)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1482705 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Enis Soztutar 2013-05-15 07:28:28 +00:00
parent ba37032a72
commit 0a183765ac
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ public class LruBlockCache implements BlockCache, HeapSize {
CachedBlock cb = map.get(cacheKey);
if(cb != null) {
String msg = "Cached an already cached block: " + cacheKey + " cb:" + cb.getCacheKey();
msg += ". This is harmless and can happen in rare cases (see HBASE-8547)";
LOG.warn(msg);
assert false : msg;
}