Package org.apache.hadoop.hbase.master
Class TestSplitLogManager
java.lang.Object
org.apache.hadoop.hbase.master.TestSplitLogManager
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classprivate static interface - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.conf.Configurationprivate static final org.slf4j.Loggerprivate org.apache.hadoop.hbase.master.SplitLogManagerprivate final org.apache.hadoop.hbase.master.ServerManagerprivate static HBaseTestingUtilprivate intprivate org.apache.hadoop.hbase.zookeeper.ZKWatcher - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.master.SplitLogManager.TaskfindOrCreateOrphanTask(String path) voidsetup()private StringsubmitTaskAndWait(org.apache.hadoop.hbase.master.SplitLogManager.TaskBatch batch, String name) voidteardown()voidvoidvoidvoidvoidvoidvoidvoidTest whether the splitlog correctly creates a task in zookeepervoidvoidvoidvoidvoidvoidprivate voidwaitForCounter(LongAdder ctr, long oldval, long newval, long timems) private voidwaitForCounter(TestSplitLogManager.Expr e, long oldval, long newval, long timems)  
- 
Field Details
- 
CLASS_RULE
 - 
LOG
 - 
sm
 - 
zkw
 - 
master
 - 
slm
 - 
conf
 - 
to
 - 
TEST_UTIL
 
 - 
 - 
Constructor Details
- 
TestSplitLogManager
public TestSplitLogManager() 
 - 
 - 
Method Details
- 
setup
- Throws:
 Exception
 - 
teardown
- Throws:
 IOExceptionorg.apache.zookeeper.KeeperException
 - 
testBatchWaitMillis
 - 
waitForCounter
- Throws:
 Exception
 - 
waitForCounter
private void waitForCounter(TestSplitLogManager.Expr e, long oldval, long newval, long timems) throws Exception - Throws:
 Exception
 - 
findOrCreateOrphanTask
 - 
submitTaskAndWait
private String submitTaskAndWait(org.apache.hadoop.hbase.master.SplitLogManager.TaskBatch batch, String name) throws org.apache.zookeeper.KeeperException, InterruptedException - Throws:
 org.apache.zookeeper.KeeperExceptionInterruptedException
 - 
testTaskCreation
Test whether the splitlog correctly creates a task in zookeeper- Throws:
 Exception
 - 
testOrphanTaskAcquisition
- Throws:
 Exception
 - 
testUnassignedOrphan
- Throws:
 Exception
 - 
testMultipleResubmits
- Throws:
 Exception
 - 
testRescanCleanup
- Throws:
 Exception
 - 
testTaskDone
- Throws:
 Exception
 - 
testTaskErr
- Throws:
 Exception
 - 
testTaskResigned
- Throws:
 Exception
 - 
testUnassignedTimeout
- Throws:
 Exception
 - 
testDeadWorker
- Throws:
 Exception
 - 
testWorkerCrash
- Throws:
 Exception
 - 
testEmptyLogDir
- Throws:
 Exception
 - 
testLogFilesAreArchived
- Throws:
 Exception
 
 -