Revert "HBASE-24444 Should shutdown mini cluster after class in TestMetaAssignmentWithStopMaster (#1802)"
This reverts commit 3b3bba1b64
.
This commit is contained in:
parent
3b3bba1b64
commit
a4aa5384f1
|
@ -29,7 +29,6 @@ import org.apache.hadoop.hbase.client.Connection;
|
||||||
import org.apache.hadoop.hbase.client.ConnectionFactory;
|
import org.apache.hadoop.hbase.client.ConnectionFactory;
|
||||||
import org.apache.hadoop.hbase.client.RegionLocator;
|
import org.apache.hadoop.hbase.client.RegionLocator;
|
||||||
import org.apache.hadoop.hbase.testclassification.LargeTests;
|
import org.apache.hadoop.hbase.testclassification.LargeTests;
|
||||||
import org.junit.AfterClass;
|
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.ClassRule;
|
import org.junit.ClassRule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
@ -52,17 +51,12 @@ public class TestMetaAssignmentWithStopMaster {
|
||||||
private static final long WAIT_TIMEOUT = 120000;
|
private static final long WAIT_TIMEOUT = 120000;
|
||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void setUpBeforeClass() throws Exception {
|
public static void setUp() throws Exception {
|
||||||
StartMiniClusterOption option = StartMiniClusterOption.builder()
|
StartMiniClusterOption option = StartMiniClusterOption.builder()
|
||||||
.numMasters(2).numRegionServers(3).numDataNodes(3).build();
|
.numMasters(2).numRegionServers(3).numDataNodes(3).build();
|
||||||
UTIL.startMiniCluster(option);
|
UTIL.startMiniCluster(option);
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClass
|
|
||||||
public static void tearDownAfterClass() throws Exception {
|
|
||||||
UTIL.shutdownMiniCluster();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testStopActiveMaster() throws Exception {
|
public void testStopActiveMaster() throws Exception {
|
||||||
try (Connection conn = ConnectionFactory.createConnection(UTIL.getConfiguration());
|
try (Connection conn = ConnectionFactory.createConnection(UTIL.getConfiguration());
|
||||||
|
|
Loading…
Reference in New Issue