HBASE-5909 SlabStats should be a daemon thread
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1357973 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0fc4929d66
commit
72b0a70a01
|
@ -61,10 +61,8 @@ public class SlabCache implements SlabItemActionWatcher, BlockCache, HeapSize {
|
|||
static final Log LOG = LogFactory.getLog(SlabCache.class);
|
||||
static final int STAT_THREAD_PERIOD_SECS = 60 * 5;
|
||||
|
||||
private final ScheduledExecutorService scheduleThreadPool = Executors
|
||||
.newScheduledThreadPool(1,
|
||||
new ThreadFactoryBuilder().setNameFormat("Slab Statistics #%d")
|
||||
.build());
|
||||
private final ScheduledExecutorService scheduleThreadPool = Executors.newScheduledThreadPool(1,
|
||||
new ThreadFactoryBuilder().setDaemon(true).setNameFormat("Slab Statistics #%d").build());
|
||||
|
||||
long size;
|
||||
private final CacheStats stats;
|
||||
|
|
Loading…
Reference in New Issue