public abstract class TestAssignmentManagerBase extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.hbase.master.assignment.AssignmentManager |
am |
protected long |
assignFailedCount |
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
assignProcMetrics |
protected long |
assignSubmittedCount |
protected long |
closeFailedCount |
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
closeProcMetrics |
protected long |
closeSubmittedCount |
org.junit.rules.ExpectedException |
exception |
protected ScheduledExecutorService |
executor |
private static org.slf4j.Logger |
LOG |
protected MockMasterServices |
master |
protected long |
moveFailedCount |
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
moveProcMetrics |
protected long |
moveSubmittedCount |
org.junit.rules.TestName |
name |
protected int |
newRsAdded |
protected static int |
NREGIONS |
protected static int |
NSERVERS |
protected long |
openFailedCount |
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
openProcMetrics |
protected long |
openSubmittedCount |
protected static int |
PROC_NTHREADS |
protected NavigableMap<org.apache.hadoop.hbase.ServerName,SortedSet<byte[]>> |
regionsToRegionServers |
protected long |
reopenFailedCount |
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
reopenProcMetrics |
protected long |
reopenSubmittedCount |
protected TestAssignmentManagerBase.MockRSProcedureDispatcher |
rsDispatcher |
protected long |
unassignFailedCount |
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
unassignProcMetrics |
protected long |
unassignSubmittedCount |
protected HBaseTestingUtility |
util |
Constructor and Description |
---|
TestAssignmentManagerBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
bulkSubmit(org.apache.hadoop.hbase.master.assignment.TransitRegionStateProcedure[] procs) |
protected void |
collectAssignmentManagerMetrics() |
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 |
getAssignMaxAttempts() |
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 |
setUpMeta() |
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) |
private static final org.slf4j.Logger LOG
public org.junit.rules.TestName name
public final org.junit.rules.ExpectedException exception
protected static final int PROC_NTHREADS
protected static final int NREGIONS
protected static final int NSERVERS
protected HBaseTestingUtility util
protected TestAssignmentManagerBase.MockRSProcedureDispatcher rsDispatcher
protected MockMasterServices master
protected org.apache.hadoop.hbase.master.assignment.AssignmentManager am
protected NavigableMap<org.apache.hadoop.hbase.ServerName,SortedSet<byte[]>> regionsToRegionServers
protected ScheduledExecutorService executor
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics assignProcMetrics
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics unassignProcMetrics
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics moveProcMetrics
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics reopenProcMetrics
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics openProcMetrics
protected org.apache.hadoop.hbase.procedure2.ProcedureMetrics closeProcMetrics
protected long assignSubmittedCount
protected long assignFailedCount
protected long unassignSubmittedCount
protected long unassignFailedCount
protected long moveSubmittedCount
protected long moveFailedCount
protected long reopenSubmittedCount
protected long reopenFailedCount
protected long openSubmittedCount
protected long openFailedCount
protected long closeSubmittedCount
protected long closeFailedCount
protected int newRsAdded
public TestAssignmentManagerBase()
protected int getAssignMaxAttempts()
protected void setupConfiguration(org.apache.hadoop.conf.Configuration conf) throws Exception
Exception
protected Future<byte[]> submitProcedure(org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> proc)
protected byte[] waitOnFuture(Future<byte[]> future) throws Exception
Exception
protected void bulkSubmit(org.apache.hadoop.hbase.master.assignment.TransitRegionStateProcedure[] procs) throws Exception
Exception
protected org.apache.hadoop.hbase.master.assignment.TransitRegionStateProcedure createAndSubmitAssign(org.apache.hadoop.hbase.TableName tableName, int regionId)
protected org.apache.hadoop.hbase.client.RegionInfo createRegionInfo(org.apache.hadoop.hbase.TableName tableName, long regionId)
protected org.apache.hadoop.hbase.master.assignment.TransitRegionStateProcedure createAssignProcedure(org.apache.hadoop.hbase.client.RegionInfo hri)
protected org.apache.hadoop.hbase.master.assignment.TransitRegionStateProcedure createUnassignProcedure(org.apache.hadoop.hbase.client.RegionInfo hri)
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
IOException
protected void doCrash(org.apache.hadoop.hbase.ServerName serverName)
protected void doRestart(org.apache.hadoop.hbase.ServerName serverName)
protected final void collectAssignmentManagerMetrics()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.