Package org.apache.hadoop.hbase.master
Class TestSplitLogManager
java.lang.Object
org.apache.hadoop.hbase.master.TestSplitLogManager
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
private static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private static final org.slf4j.Logger
private org.apache.hadoop.hbase.master.SplitLogManager
private final org.apache.hadoop.hbase.master.ServerManager
private static HBaseTestingUtil
private int
private org.apache.hadoop.hbase.zookeeper.ZKWatcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.master.SplitLogManager.Task
findOrCreateOrphanTask
(String path) void
setup()
private String
submitTaskAndWait
(org.apache.hadoop.hbase.master.SplitLogManager.TaskBatch batch, String name) void
teardown()
void
void
void
void
void
void
void
void
Test whether the splitlog correctly creates a task in zookeepervoid
void
void
void
void
void
private void
waitForCounter
(LongAdder ctr, long oldval, long newval, long timems) private void
waitForCounter
(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:
IOException
org.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.KeeperException
InterruptedException
-
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
-