HBASE-15991 CompactingMemstore#InMemoryFlushRunnable should implement

Comparable/Comparator (Ram)
This commit is contained in:
Ramkrishna 2016-06-13 17:42:35 +05:30
parent 2d0448fa84
commit 56c209c8aa
1 changed files with 2 additions and 1 deletions

View File

@ -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<Runnable>().getStealFromQueue(),
new LinkedBlockingQueue<Runnable>(),
new ThreadFactory() {
@Override
public Thread newThread(Runnable r) {