Class TestRegionReplicasWithModifyTable
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionReplicasWithModifyTable
@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestRegionReplicasWithModifyTable
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate static final byte[]private static final HBaseTestingUtilprivate static final intprivate org.apache.hadoop.hbase.TableName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprivate voidassertTotalRegions(int expected) static voidbefore()private voidenableReplicationByModification(boolean withReplica, int initialReplicaCount, int enableReplicaCount, int splitCount) private static byte[][]getSplits(int numRegions) static Stream<org.junit.jupiter.params.provider.Arguments>voidsetUp(org.junit.jupiter.api.TestInfo testInfo) voidtearDown()voidvoidvoidvoidvoidvoid
-
Field Details
-
NB_SERVERS
- See Also:
-
HTU
-
f
-
disableBeforeModifying
-
tableName
-
-
Constructor Details
-
TestRegionReplicasWithModifyTable
-
-
Method Details
-
parameters
-
before
- Throws:
Exception
-
setUp
-
enableReplicationByModification
private void enableReplicationByModification(boolean withReplica, int initialReplicaCount, int enableReplicaCount, int splitCount) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getSplits
-
afterClass
- Throws:
Exception
-
tearDown
- Throws:
IOException
-
assertTotalRegions
-
testRegionReplicasUsingEnableTable
- Throws:
Exception
-
testRegionReplicasUsingEnableTableForMultipleRegions
- Throws:
Exception
-
testRegionReplicasByEnableTableWhenReplicaCountIsIncreased
@TestTemplate public void testRegionReplicasByEnableTableWhenReplicaCountIsIncreased() throws Exception- Throws:
Exception
-
testRegionReplicasByEnableTableWhenReplicaCountIsDecreased
@TestTemplate public void testRegionReplicasByEnableTableWhenReplicaCountIsDecreased() throws Exception- Throws:
Exception
-
testRegionReplicasByEnableTableWhenReplicaCountIsDecreasedWithMultipleRegions
@TestTemplate public void testRegionReplicasByEnableTableWhenReplicaCountIsDecreasedWithMultipleRegions() throws Exception- Throws:
Exception
-
testRegionReplicasByEnableTableWhenReplicaCountIsIncreasedWithMultipleRegions
@TestTemplate public void testRegionReplicasByEnableTableWhenReplicaCountIsIncreasedWithMultipleRegions() throws Exception- Throws:
Exception
-