HBASE-3508. LruBlockCache statistics thread should have a name
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1068140 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b8482c13fa
commit
1ae03f81b9
|
@ -93,6 +93,7 @@ Release 0.90.1 - Unreleased
|
|||
|
||||
IMPROVEMENTS
|
||||
HBASE-3470 Check that hbase-default.xml is loaded from within jar
|
||||
HBASE-3508 LruBlockCache statistics thread should have a name
|
||||
|
||||
Release 0.90.0 - January 19th, 2011
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -37,6 +37,8 @@ import org.apache.hadoop.hbase.util.Bytes;
|
|||
import org.apache.hadoop.hbase.util.ClassSize;
|
||||
import org.apache.hadoop.util.StringUtils;
|
||||
|
||||
import com.google.common.util.concurrent.ThreadFactoryBuilder;
|
||||
|
||||
/**
|
||||
* A block cache implementation that is memory-aware using {@link HeapSize},
|
||||
* memory-bound using an LRU eviction algorithm, and concurrent: backed by a
|
||||
|
@ -111,7 +113,10 @@ public class LruBlockCache implements BlockCache, HeapSize {
|
|||
|
||||
/** Statistics thread schedule pool (for heavy debugging, could remove) */
|
||||
private final ScheduledExecutorService scheduleThreadPool =
|
||||
Executors.newScheduledThreadPool(1);
|
||||
Executors.newScheduledThreadPool(1,
|
||||
new ThreadFactoryBuilder()
|
||||
.setNameFormat("LRU Statistics #%d")
|
||||
.build());
|
||||
|
||||
/** Current size of cache */
|
||||
private final AtomicLong size;
|
||||
|
|
Loading…
Reference in New Issue