HBASE-13821 WARN if hbase.bucketcache.percentage.in.combinedcache is set

This commit is contained in:
Nick Dimiduk 2015-06-15 18:07:40 -07:00
parent 84a50393ee
commit cba9ea61dd
1 changed files with 4 additions and 0 deletions

View File

@ -546,6 +546,10 @@ public class CacheConfig {
throw new IllegalStateException("bucketCacheSize <= 0; Check " + throw new IllegalStateException("bucketCacheSize <= 0; Check " +
BUCKET_CACHE_SIZE_KEY + " setting and/or server java heap size"); BUCKET_CACHE_SIZE_KEY + " setting and/or server java heap size");
} }
if (c.get("hbase.bucketcache.percentage.in.combinedcache") != null) {
LOG.warn("Configuration 'hbase.bucketcache.percentage.in.combinedcache' is no longer "
+ "respected. See comments in http://hbase.apache.org/book.html#_changes_of_note");
}
int writerThreads = c.getInt(BUCKET_CACHE_WRITER_THREADS_KEY, int writerThreads = c.getInt(BUCKET_CACHE_WRITER_THREADS_KEY,
DEFAULT_BUCKET_CACHE_WRITER_THREADS); DEFAULT_BUCKET_CACHE_WRITER_THREADS);
int writerQueueLen = c.getInt(BUCKET_CACHE_WRITER_QUEUE_KEY, int writerQueueLen = c.getInt(BUCKET_CACHE_WRITER_QUEUE_KEY,