hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject svn commit: r1357973 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java
Date Thu, 05 Jul 2012 22:28:12 GMT
Author: larsh
Date: Thu Jul  5 22:28:12 2012
New Revision: 1357973

URL: http://svn.apache.org/viewvc?rev=1357973&view=rev
Log:
HBASE-5909 SlabStats should be a daemon thread

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java?rev=1357973&r1=1357972&r2=1357973&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java
Thu Jul  5 22:28:12 2012
@@ -61,10 +61,8 @@ public class SlabCache implements SlabIt
   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;



Mime
View raw message