Class TestMetaShutdownHandler

java.lang.Object
org.apache.hadoop.hbase.master.TestMetaShutdownHandler

@Tag("org.apache.hadoop.hbase.testclassification.MediumTests") public class TestMetaShutdownHandler extends Object
Tests handling of meta-carrying region server failover.
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • TEST_UTIL

      private static final HBaseTestingUtil TEST_UTIL
    • conf

      static final org.apache.hadoop.conf.Configuration conf
  • Constructor Details

  • Method Details

    • setUpBeforeClass

      @BeforeAll public static void setUpBeforeClass() throws Exception
      Throws:
      Exception
    • tearDownAfterClass

      @AfterAll public static void tearDownAfterClass() throws Exception
      Throws:
      Exception
    • testExpireMetaRegionServer

      @Test public void testExpireMetaRegionServer() throws Exception
      This test will test the expire handling of a meta-carrying region server. After HBaseMiniCluster is up, we will delete the ephemeral node of the meta-carrying region server, which will trigger the expire of this region server on the master. On the other hand, we will slow down the abort process on the region server so that it is still up during the master SSH. We will check that the master SSH is still successfully done.
      Throws:
      Exception