Package org.apache.hadoop.hbase
Class TestZooKeeper
java.lang.Object
org.apache.hadoop.hbase.TestZooKeeper
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
after()
private int
countListeners
(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher, Class<?>... exclude) Count listeners in zkw excluding provided classesprivate int
countPermanentListeners
(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher) Count listeners in zkw excluding listeners, that belongs to workers or other temporary processes.void
setUp()
static void
static void
void
Tests whether the logs are split when master recovers from a expired zookeeper session and an RS goes down.void
void
Master recovery when the znode already exists.void
Tests that the master does not call retainAssignment after recovery from expired zookeeper session.void
private void
testSanity
(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
-