public class TestAssignmentManagerBase extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
TestAssignmentManagerBase.FaultyRsExecutor |
protected class |
TestAssignmentManagerBase.GoodRsExecutor |
protected class |
TestAssignmentManagerBase.HangOnCloseThenRSCrashExecutor |
protected class |
TestAssignmentManagerBase.HangThenRSCrashExecutor
Takes open request and then returns nothing so acts like a RS that went zombie.
|
protected class |
TestAssignmentManagerBase.HangThenRSRestartExecutor
Takes open request and then returns nothing so acts like a RS that went zombie.
|
protected static interface |
TestAssignmentManagerBase.MockRSExecutor |
protected class |
TestAssignmentManagerBase.MockRSProcedureDispatcher |
protected class |
TestAssignmentManagerBase.NoopRsExecutor |
protected class |
TestAssignmentManagerBase.RandRsExecutor |
protected static class |
TestAssignmentManagerBase.ServerNotYetRunningRsExecutor |
protected class |
TestAssignmentManagerBase.SocketTimeoutRsExecutor |
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 |
org.junit.rules.ExpectedException |
exception |
protected ScheduledExecutorService |
executor |
private static org.slf4j.Logger |
LOG |
protected MockMasterServices |
master |
org.junit.rules.TestName |
name |
protected static int |
NREGIONS |
protected static int |
NSERVERS |
private static int |
PROC_NTHREADS |
protected NavigableMap<org.apache.hadoop.hbase.ServerName,SortedSet<byte[]>> |
regionsToRegionServers |
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.AssignProcedure[] procs) |
protected void |
collectAssignmentManagerMetrics() |
private org.apache.hadoop.hbase.master.assignment.AssignProcedure |
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) |
private void |
doCrash(org.apache.hadoop.hbase.ServerName serverName) |
private void |
doRestart(org.apache.hadoop.hbase.ServerName serverName) |
private 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) |
void |
setUp() |
protected void |
setupConfiguration(org.apache.hadoop.conf.Configuration conf) |
private 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
private 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 long assignSubmittedCount
protected long assignFailedCount
protected long unassignSubmittedCount
protected long unassignFailedCount
public TestAssignmentManagerBase()
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.AssignProcedure[] procs) throws Exception
Exception
private org.apache.hadoop.hbase.master.assignment.AssignProcedure 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)
private 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) throws IOException
IOException
private void doCrash(org.apache.hadoop.hbase.ServerName serverName)
private void doRestart(org.apache.hadoop.hbase.ServerName serverName)
protected void collectAssignmentManagerMetrics()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.