Package org.apache.hadoop.hbase
Class TestZooKeeper
java.lang.Object
org.apache.hadoop.hbase.TestZooKeeper
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()private intcountListeners(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher, Class<?>... exclude) Count listeners in zkw excluding provided classesprivate intcountPermanentListeners(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher) Count listeners in zkw excluding listeners, that belongs to workers or other temporary processes.voidsetUp()static voidstatic voidvoidTests whether the logs are split when master recovers from a expired zookeeper session and an RS goes down.voidvoidMaster recovery when the znode already exists.voidTests that the master does not call retainAssignment after recovery from expired zookeeper session.voidprivate voidtestSanity(String testName) Make sure we can use the cluster
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
name
-
-
Constructor Details
-
TestZooKeeper
public TestZooKeeper()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setUp
- Throws:
Exception
-
after
- Throws:
Exception
-
testRegionServerSessionExpired
- Throws:
Exception
-
testMasterSessionExpired
- Throws:
Exception
-
testMasterZKSessionRecoveryFailure
Master recovery when the znode already exists. Internally, this test differs fromtestMasterSessionExpired()because here the master znode will exist in ZK.- Throws:
Exception
-
testSanity
Make sure we can use the cluster- Throws:
Exception
-
testRegionAssignmentAfterMasterRecoveryDueToZKExpiry
Tests that the master does not call retainAssignment after recovery from expired zookeeper session. Without the HBASE-6046 fix master always tries to assign all the user regions by calling retainAssignment.- Throws:
Exception
-
countPermanentListeners
Count listeners in zkw excluding listeners, that belongs to workers or other temporary processes. -
countListeners
private int countListeners(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher, Class<?>... exclude) Count listeners in zkw excluding provided classes -
testLogSplittingAfterMasterRecoveryDueToZKExpiry
Tests whether the logs are split when master recovers from a expired zookeeper session and an RS goes down.- Throws:
Exception
-