public class TestMasterShutdown extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private HBaseTestingUtil |
htu |
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
TestMasterShutdown() |
Modifier and Type | Method and Description |
---|---|
private static org.apache.hadoop.conf.Configuration |
createMasterShutdownBeforeStartingAnyRegionServerConfiguration()
Create a cluster configuration suitable for
testMasterShutdownBeforeStartingAnyRegionServer() . |
void |
shutdownCluster() |
void |
testMasterShutdown()
Simple test of shutdown.
|
void |
testMasterShutdownBeforeStartingAnyRegionServer()
This test appears to be an intentional race between a thread that issues a shutdown RPC to the
master, while the master is concurrently realizing it cannot initialize because there are no
region servers available to it.
|
private static final org.slf4j.Logger LOG
public static final HBaseClassTestRule CLASS_RULE
private HBaseTestingUtil htu
public TestMasterShutdown()
public void shutdownCluster() throws IOException
IOException
public void testMasterShutdown() throws Exception
Starts with three masters. Tells the active master to shutdown the cluster. Verifies that all masters are properly shutdown.
Exception
public void testMasterShutdownBeforeStartingAnyRegionServer() throws Exception
Exception
private static org.apache.hadoop.conf.Configuration createMasterShutdownBeforeStartingAnyRegionServerConfiguration()
testMasterShutdownBeforeStartingAnyRegionServer()
.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.