public class TestMasterFailover extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
| Constructor and Description |
|---|
TestMasterFailover() |
| Modifier and Type | Method and Description |
|---|---|
void |
testMetaInTransitionWhenMasterFailover()
Test meta in transition when master failover.
|
void |
testSimpleMasterFailover()
Simple test of master failover.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public org.junit.rules.TestName name
public TestMasterFailover()
public void testSimpleMasterFailover() throws Exception
Starts with three masters. Kills a backup master. Then kills the active master. Ensures the final master becomes active and we can still contact the cluster.
Exceptionpublic void testMetaInTransitionWhenMasterFailover() throws Exception
ExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.