HBASE-15991 CompactingMemstore#InMemoryFlushRunnable should implement
Comparable/Comparator (Ram)
This commit is contained in:
parent
6360cc0307
commit
2738518d43
|
@ -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