Class TestSplitLogWorker
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestSplitLogWorker
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private TestSplitLogWorker.DummyServer
private org.apache.hadoop.hbase.executor.ExecutorService
private static final org.slf4j.Logger
private final org.apache.hadoop.hbase.ServerName
(package private) org.apache.hadoop.hbase.regionserver.SplitLogWorker.TaskExecutor
private org.apache.hadoop.hbase.regionserver.SplitLogWorker
private static final HBaseTestingUtil
private static final int
private org.apache.hadoop.hbase.zookeeper.ZKWatcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.regionserver.RegionServerServices
getRegionServer
(org.apache.hadoop.hbase.ServerName name) Create a mocked region server service instancevoid
setup()
private void
stopSplitLogWorker
(org.apache.hadoop.hbase.regionserver.SplitLogWorker slw) void
teardown()
void
void
void
void
void
void
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)
-
Field Details
-
CLASS_RULE
-
LOG
-
WAIT_TIME
- See Also:
-
MANAGER
-
TEST_UTIL
-
ds
-
zkw
-
slw
-
executorService
-
neverEndingTask
org.apache.hadoop.hbase.regionserver.SplitLogWorker.TaskExecutor neverEndingTask
-
-
Constructor Details
-
TestSplitLogWorker
public TestSplitLogWorker()
-
-
Method Details
-
waitForCounter
- Throws:
Exception
-
waitForCounterBoolean
private boolean waitForCounterBoolean(LongAdder ctr, long oldval, long newval, long timems) throws Exception - Throws:
Exception
-
waitForCounterBoolean
private boolean waitForCounterBoolean(LongAdder ctr, long oldval, long newval, long timems, boolean failIfTimeout) throws Exception - Throws:
Exception
-
setup
- Throws:
Exception
-
teardown
- Throws:
Exception
-
testAcquireTaskAtStartup
- Throws:
Exception
-
stopSplitLogWorker
private void stopSplitLogWorker(org.apache.hadoop.hbase.regionserver.SplitLogWorker slw) throws InterruptedException - Throws:
InterruptedException
-
testRaceForTask
- Throws:
Exception
-
testPreemptTask
- Throws:
Exception
-
testMultipleTasks
- Throws:
Exception
-
testRescan
- Throws:
Exception
-
testAcquireMultiTasks
- Throws:
Exception
-
getRegionServer
private org.apache.hadoop.hbase.regionserver.RegionServerServices getRegionServer(org.apache.hadoop.hbase.ServerName name) Create a mocked region server service instance
-