public class TestZooKeeper extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
org.junit.rules.TestName |
name |
| Constructor and Description |
|---|
TestZooKeeper() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
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() |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
public TestZooKeeper()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testRegionServerSessionExpired() throws Exception
Exceptionpublic void testMasterSessionExpired() throws Exception
Exceptionpublic void testMasterZKSessionRecoveryFailure() throws Exception
testMasterSessionExpired() because here
the master znode will exist in ZK.Exceptionpublic void testRegionAssignmentAfterMasterRecoveryDueToZKExpiry() throws Exception
Exceptionpublic void testLogSplittingAfterMasterRecoveryDueToZKExpiry() throws Exception
ExceptionCopyright © 2007–2019 Cloudera. All rights reserved.