Class TestRegionReplicaWaitForPrimaryFlushConf

java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionReplicaWaitForPrimaryFlushConf

@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests") public class TestRegionReplicaWaitForPrimaryFlushConf extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • setUpBeforeClass

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

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

      @BeforeEach public void setUp(org.junit.jupiter.api.TestInfo testInfo)
    • testSecondaryReplicaReadEnabled

      @Test public void testSecondaryReplicaReadEnabled() throws Exception
      This test is for HBASE-26811,before HBASE-26811,when RegionReplicaUtil.REGION_REPLICA_WAIT_FOR_PRIMARY_FLUSH_CONF_KEY is false and set TableDescriptorBuilder.setRegionMemStoreReplication(boolean) to true explicitly,the secondary replica would be disabled for read after open,after HBASE-26811,the secondary replica would be enabled for read after open.
      Throws:
      Exception