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
Modifier and TypeClassDescription(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static byte[]
static final HBaseClassTestRule
private static final int
private static org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
confirmBatchSize
(int expectedBatchSize, Set<TestReopenTableRegionsProcedureBatching.StuckRegion> stuckRegions, org.apache.hadoop.hbase.master.procedure.ReopenTableRegionsProcedure proc) static void
setUp()
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 void
tearDown()
void
void
void
void
private 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
-
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
-