From 2738518d439e881ff57622b10ba835dbaab25c77 Mon Sep 17 00:00:00 2001 From: Ramkrishna Date: Mon, 13 Jun 2016 12:43:52 +0530 Subject: [PATCH] HBASE-15991 CompactingMemstore#InMemoryFlushRunnable should implement Comparable/Comparator (Ram) --- .../hadoop/hbase/regionserver/RegionServicesForStores.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionServicesForStores.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionServicesForStores.java index 72f7bf5cac5..e481a6361aa 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionServicesForStores.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionServicesForStores.java @@ -18,6 +18,7 @@ */ package org.apache.hadoop.hbase.regionserver; +import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadFactory; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; @@ -42,7 +43,7 @@ public class RegionServicesForStores { private static final int POOL_SIZE = 10; private static final ThreadPoolExecutor INMEMORY_COMPACTION_POOL = new ThreadPoolExecutor(POOL_SIZE, POOL_SIZE, 60, TimeUnit.SECONDS, - new StealJobQueue().getStealFromQueue(), + new LinkedBlockingQueue(), new ThreadFactory() { @Override public Thread newThread(Runnable r) {