Class TestAssignmentManagerBase
java.lang.Object
org.apache.hadoop.hbase.master.assignment.TestAssignmentManagerBase
- Direct Known Subclasses:
TestAMAssignWithRandExec
,TestAMServerFailedOpen
,TestAssignmentManager
,TestHbckChore
Base class for AM test.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected static class
protected class
protected class
protected class
Takes open request and then returns nothing so acts like a RS that went zombie.protected class
Takes open request and then returns nothing so acts like a RS that went zombie.protected static interface
protected class
protected class
protected class
protected static class
protected class
protected class
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.hadoop.hbase.master.assignment.AssignmentManager
protected long
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics
protected long
protected long
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics
protected long
protected ScheduledExecutorService
private static final org.slf4j.Logger
protected MockMasterServices
protected long
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics
protected long
org.junit.rules.TestName
protected int
protected static final int
protected static final int
protected long
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics
protected long
protected static final int
protected NavigableMap<org.apache.hadoop.hbase.ServerName,
SortedSet<byte[]>> protected long
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics
protected long
protected long
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics
protected long
protected HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
bulkSubmit
(org.apache.hadoop.hbase.master.assignment.TransitRegionStateProcedure[] procs) protected final void
protected org.apache.hadoop.hbase.master.assignment.TransitRegionStateProcedure
createAndSubmitAssign
(org.apache.hadoop.hbase.TableName tableName, int regionId) protected org.apache.hadoop.hbase.master.assignment.TransitRegionStateProcedure
createAssignProcedure
(org.apache.hadoop.hbase.client.RegionInfo hri) protected org.apache.hadoop.hbase.client.RegionInfo
createRegionInfo
(org.apache.hadoop.hbase.TableName tableName, long regionId) protected org.apache.hadoop.hbase.master.assignment.TransitRegionStateProcedure
createUnassignProcedure
(org.apache.hadoop.hbase.client.RegionInfo hri) protected void
doCrash
(org.apache.hadoop.hbase.ServerName serverName) protected void
doRestart
(org.apache.hadoop.hbase.ServerName serverName) protected int
protected void
sendTransitionReport
(org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionInfo regionInfo, org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode state, long seqId) void
setUp()
protected void
setupConfiguration
(org.apache.hadoop.conf.Configuration conf) protected void
protected Future<byte[]>
submitProcedure
(org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> proc) void
tearDown()
protected byte[]
waitOnFuture
(Future<byte[]> future)
-
Field Details
-
LOG
-
name
-
PROC_NTHREADS
- See Also:
-
NREGIONS
- See Also:
-
NSERVERS
-
util
-
rsDispatcher
-
master
-
am
-
regionsToRegionServers
-
executor
-
assignProcMetrics
-
unassignProcMetrics
-
moveProcMetrics
-
reopenProcMetrics
-
openProcMetrics
-
closeProcMetrics
-
assignSubmittedCount
-
assignFailedCount
-
unassignSubmittedCount
-
unassignFailedCount
-
moveSubmittedCount
-
moveFailedCount
-
reopenSubmittedCount
-
reopenFailedCount
-
openSubmittedCount
-
openFailedCount
-
closeSubmittedCount
-
closeFailedCount
-
newRsAdded
-
-
Constructor Details
-
TestAssignmentManagerBase
public TestAssignmentManagerBase()
-
-
Method Details
-
getAssignMaxAttempts
-
setupConfiguration
- Throws:
Exception
-
setUp
- Throws:
Exception
-
setUpMeta
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
submitProcedure
protected Future<byte[]> submitProcedure(org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> proc) -
waitOnFuture
- Throws:
Exception
-
bulkSubmit
protected void bulkSubmit(org.apache.hadoop.hbase.master.assignment.TransitRegionStateProcedure[] procs) throws Exception - Throws:
Exception
-
createAndSubmitAssign
protected org.apache.hadoop.hbase.master.assignment.TransitRegionStateProcedure createAndSubmitAssign(org.apache.hadoop.hbase.TableName tableName, int regionId) -
createRegionInfo
protected org.apache.hadoop.hbase.client.RegionInfo createRegionInfo(org.apache.hadoop.hbase.TableName tableName, long regionId) -
createAssignProcedure
protected org.apache.hadoop.hbase.master.assignment.TransitRegionStateProcedure createAssignProcedure(org.apache.hadoop.hbase.client.RegionInfo hri) -
createUnassignProcedure
protected org.apache.hadoop.hbase.master.assignment.TransitRegionStateProcedure createUnassignProcedure(org.apache.hadoop.hbase.client.RegionInfo hri) -
sendTransitionReport
protected void sendTransitionReport(org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionInfo regionInfo, org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode state, long seqId) throws IOException - Throws:
IOException
-
doCrash
-
doRestart
-
collectAssignmentManagerMetrics
-