Class TestAssignmentManager
java.lang.Object
org.apache.hadoop.hbase.master.assignment.TestAssignmentManagerBase
org.apache.hadoop.hbase.master.assignment.TestAssignmentManager
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.master.assignment.TestAssignmentManagerBase
TestAssignmentManagerBase.CallQueueTooBigOnceRsExecutor, TestAssignmentManagerBase.FaultyRsExecutor, TestAssignmentManagerBase.GoodRsExecutor, TestAssignmentManagerBase.HangOnCloseThenRSCrashExecutor, TestAssignmentManagerBase.HangThenRSCrashExecutor, TestAssignmentManagerBase.HangThenRSRestartExecutor, TestAssignmentManagerBase.MockRSExecutor, TestAssignmentManagerBase.MockRSProcedureDispatcher, TestAssignmentManagerBase.NoopRsExecutor, TestAssignmentManagerBase.RandRsExecutor, TestAssignmentManagerBase.ServerNotYetRunningRsExecutor, TestAssignmentManagerBase.SocketTimeoutRsExecutor, TestAssignmentManagerBase.TimeoutThenCallQueueTooBigRsExecutor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
Fields inherited from class org.apache.hadoop.hbase.master.assignment.TestAssignmentManagerBase
am, assignFailedCount, assignProcMetrics, assignSubmittedCount, closeFailedCount, closeProcMetrics, closeSubmittedCount, executor, master, moveFailedCount, moveProcMetrics, moveSubmittedCount, name, newRsAdded, NREGIONS, NSERVERS, openFailedCount, openProcMetrics, openSubmittedCount, PROC_NTHREADS, regionsToRegionServers, reopenFailedCount, reopenProcMetrics, reopenSubmittedCount, rsDispatcher, unassignFailedCount, unassignProcMetrics, unassignSubmittedCount, util
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
private void
testAssign
(TestAssignmentManagerBase.MockRSExecutor executor, int nRegions) void
void
void
It is possible that when AM send assign meta request to a RS successfully, but RS can not send back any response, which cause master startup hangs forevervoid
void
void
void
void
void
testMove()
void
void
void
void
Methods inherited from class org.apache.hadoop.hbase.master.assignment.TestAssignmentManagerBase
bulkSubmit, collectAssignmentManagerMetrics, createAndSubmitAssign, createAssignProcedure, createRegionInfo, createUnassignProcedure, doCrash, doRestart, getAssignMaxAttempts, sendTransitionReport, setUp, setupConfiguration, setUpMeta, submitProcedure, tearDown, waitOnFuture
-
Field Details
-
CLASS_RULE
-
LOG
-
-
Constructor Details
-
TestAssignmentManager
public TestAssignmentManager()
-
-
Method Details
-
testAssignWithGoodExec
- Throws:
Exception
-
testAssignAndCrashBeforeResponse
- Throws:
Exception
-
testUnassignAndCrashBeforeResponse
- Throws:
Exception
-
testAssignSocketTimeout
- Throws:
Exception
-
testAssignQueueFullOnce
- Throws:
Exception
-
testTimeoutThenQueueFull
- Throws:
Exception
-
testAssign
- Throws:
Exception
-
testAssign
private void testAssign(TestAssignmentManagerBase.MockRSExecutor executor, int nRegions) throws Exception - Throws:
Exception
-
testAssignAnAssignedRegion
- Throws:
Exception
-
testUnassignAnUnassignedRegion
- Throws:
Exception
-
testAssignMetaAndCrashBeforeResponse
It is possible that when AM send assign meta request to a RS successfully, but RS can not send back any response, which cause master startup hangs forever- Throws:
Exception
-
assertCloseThenOpen
-
testMove
- Throws:
Exception
-
testReopen
- Throws:
Exception
-
testLoadRegionFromMetaAfterRegionManuallyAdded
- Throws:
Exception
-
testLoadRegionFromMetaRegionNotInMeta
- Throws:
Exception
-