public class TestRegionReplicaWaitForPrimaryFlushConf extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILY |
private static HBaseTestingUtility |
HTU |
TableNameTestRule |
name |
private org.apache.hadoop.hbase.TableName |
tableName |
Constructor and Description |
---|
TestRegionReplicaWaitForPrimaryFlushConf() |
Modifier and Type | Method and Description |
---|---|
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testSecondaryReplicaReadEnabled()
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. |
public static final HBaseClassTestRule CLASS_RULE
private static final byte[] FAMILY
private org.apache.hadoop.hbase.TableName tableName
public final TableNameTestRule name
private static final HBaseTestingUtility HTU
public TestRegionReplicaWaitForPrimaryFlushConf()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testSecondaryReplicaReadEnabled() throws Exception
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.Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.