HBASE-15991 CompactingMemstore#InMemoryFlushRunnable should implement
Comparable/Comparator (Ram)
This commit is contained in:
parent
2d0448fa84
commit
56c209c8aa
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue