public class TestZooKeeper extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TestZooKeeper.MockLoadBalancer |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestZooKeeper() |
Modifier and Type | Method and Description |
---|---|
void |
after() |
private int |
countListeners(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher,
Class<?>... exclude)
Count listeners in zkw excluding provided classes
|
private 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 |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testLogSplittingAfterMasterRecoveryDueToZKExpiry()
Tests whether the logs are split when master recovers from a expired zookeeper session and an
RS goes down.
|
void |
testMasterSessionExpired() |
void |
testMasterZKSessionRecoveryFailure()
Master recovery when the znode already exists.
|
void |
testRegionAssignmentAfterMasterRecoveryDueToZKExpiry()
Tests that the master does not call retainAssignment after recovery from expired zookeeper
session.
|
void |
testRegionServerSessionExpired() |
private void |
testSanity(String testName)
Make sure we can use the cluster
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
public org.junit.rules.TestName name
public TestZooKeeper()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testRegionServerSessionExpired() throws Exception
Exception
public void testMasterSessionExpired() throws Exception
Exception
public void testMasterZKSessionRecoveryFailure() throws Exception
testMasterSessionExpired()
because here
the master znode will exist in ZK.Exception
private void testSanity(String testName) throws Exception
Exception
public void testRegionAssignmentAfterMasterRecoveryDueToZKExpiry() throws Exception
Exception
private int countPermanentListeners(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher)
private int countListeners(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher, Class<?>... exclude)
public void testLogSplittingAfterMasterRecoveryDueToZKExpiry() throws Exception
Exception
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.