public class TestSplitLogWorker extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TestSplitLogWorker.DummyServer |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private TestSplitLogWorker.DummyServer |
ds |
private org.apache.hadoop.hbase.executor.ExecutorService |
executorService |
private static org.slf4j.Logger |
LOG |
private org.apache.hadoop.hbase.ServerName |
MANAGER |
(package private) org.apache.hadoop.hbase.regionserver.SplitLogWorker.TaskExecutor |
neverEndingTask |
private org.apache.hadoop.hbase.regionserver.SplitLogWorker |
slw |
private static HBaseTestingUtility |
TEST_UTIL |
private static int |
WAIT_TIME |
private org.apache.hadoop.hbase.zookeeper.ZKWatcher |
zkw |
Constructor and Description |
---|
TestSplitLogWorker() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.regionserver.RegionServerServices |
getRegionServer(org.apache.hadoop.hbase.ServerName name)
Create a mocked region server service instance
|
void |
setup() |
private void |
stopSplitLogWorker(org.apache.hadoop.hbase.regionserver.SplitLogWorker slw) |
void |
teardown() |
void |
testAcquireMultiTasks() |
void |
testAcquireTaskAtStartup() |
void |
testMultipleTasks() |
void |
testPreemptTask() |
void |
testRaceForTask() |
void |
testRescan() |
private void |
waitForCounter(LongAdder ctr,
long oldval,
long newval,
long timems) |
private boolean |
waitForCounterBoolean(LongAdder ctr,
long oldval,
long newval,
long timems) |
private boolean |
waitForCounterBoolean(LongAdder ctr,
long oldval,
long newval,
long timems,
boolean failIfTimeout) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final int WAIT_TIME
private final org.apache.hadoop.hbase.ServerName MANAGER
private static final HBaseTestingUtility TEST_UTIL
private TestSplitLogWorker.DummyServer ds
private org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw
private org.apache.hadoop.hbase.regionserver.SplitLogWorker slw
private org.apache.hadoop.hbase.executor.ExecutorService executorService
org.apache.hadoop.hbase.regionserver.SplitLogWorker.TaskExecutor neverEndingTask
public TestSplitLogWorker()
private void waitForCounter(LongAdder ctr, long oldval, long newval, long timems) throws Exception
Exception
private boolean waitForCounterBoolean(LongAdder ctr, long oldval, long newval, long timems) throws Exception
Exception
private boolean waitForCounterBoolean(LongAdder ctr, long oldval, long newval, long timems, boolean failIfTimeout) throws Exception
Exception
public void testAcquireTaskAtStartup() throws Exception
Exception
private void stopSplitLogWorker(org.apache.hadoop.hbase.regionserver.SplitLogWorker slw) throws InterruptedException
InterruptedException
public void testRaceForTask() throws Exception
Exception
public void testPreemptTask() throws Exception
Exception
public void testMultipleTasks() throws Exception
Exception
public void testRescan() throws Exception
Exception
public void testAcquireMultiTasks() throws Exception
Exception
private org.apache.hadoop.hbase.regionserver.RegionServerServices getRegionServer(org.apache.hadoop.hbase.ServerName name)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.