Class TestMetaShutdownHandler

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

public class TestMetaShutdownHandler extends Object
Tests handling of meta-carrying region server failover.
  • Field Details

  • Constructor Details

  • Method Details

    • setUpBeforeClass

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

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

      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