Class TestReopenTableRegionsProcedureBatching
java.lang.Object
org.apache.hadoop.hbase.master.procedure.TestReopenTableRegionsProcedureBatching
Confirm that we will batch region reopens when reopening all table regions. This can avoid the
pain associated with reopening too many regions at once.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static byte[]static final HBaseClassTestRuleprivate static final intprivate static org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidconfirmBatchSize(int expectedBatchSize, Set<TestReopenTableRegionsProcedureBatching.StuckRegion> stuckRegions, org.apache.hadoop.hbase.master.procedure.ReopenTableRegionsProcedure proc) static voidsetUp()stickRegion(org.apache.hadoop.hbase.master.assignment.AssignmentManager am, org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> procExec, org.apache.hadoop.hbase.client.RegionInfo regionInfo) static voidtearDown()voidvoidvoidvoidvoidprivate void
-
Field Details
-
CLASS_RULE
-
UTIL
-
BACKOFF_MILLIS_PER_RS
- See Also:
-
REOPEN_BATCH_SIZE_MAX
- See Also:
-
TABLE_NAME
-
CF
-
-
Constructor Details
-
TestReopenTableRegionsProcedureBatching
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testSmallMaxBatchSize
- Throws:
IOException
-
testDefaultMaxBatchSize
- Throws:
IOException
-
testNegativeBatchSizeDoesNotBreak
- Throws:
IOException
-
testBatchSizeDoesNotOverflow
-
testBackoffConfigurationFromTableDescriptor
-
confirmBatchSize
private void confirmBatchSize(int expectedBatchSize, Set<TestReopenTableRegionsProcedureBatching.StuckRegion> stuckRegions, org.apache.hadoop.hbase.master.procedure.ReopenTableRegionsProcedure proc) -
stickRegion
private TestReopenTableRegionsProcedureBatching.StuckRegion stickRegion(org.apache.hadoop.hbase.master.assignment.AssignmentManager am, org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> procExec, org.apache.hadoop.hbase.client.RegionInfo regionInfo) -
unstickRegion
-