public class TestAssignmentManager extends 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| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
am, assignFailedCount, assignProcMetrics, assignSubmittedCount, closeFailedCount, closeProcMetrics, closeSubmittedCount, exception, executor, master, moveFailedCount, moveProcMetrics, moveSubmittedCount, name, newRsAdded, NREGIONS, NSERVERS, openFailedCount, openProcMetrics, openSubmittedCount, PROC_NTHREADS, regionsToRegionServers, reopenFailedCount, reopenProcMetrics, reopenSubmittedCount, rsDispatcher, unassignFailedCount, unassignProcMetrics, unassignSubmittedCount, util| Constructor and Description |
|---|
TestAssignmentManager() |
| Modifier and Type | Method and Description |
|---|---|
private void |
assertCloseThenOpen() |
private void |
testAssign(TestAssignmentManagerBase.MockRSExecutor executor) |
private void |
testAssign(TestAssignmentManagerBase.MockRSExecutor executor,
int nRegions) |
void |
testAssignAnAssignedRegion() |
void |
testAssignAndCrashBeforeResponse() |
void |
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
|
void |
testAssignQueueFullOnce() |
void |
testAssignSocketTimeout() |
void |
testAssignWithGoodExec() |
void |
testLoadRegionFromMetaAfterRegionManuallyAdded() |
void |
testLoadRegionFromMetaRegionNotInMeta() |
void |
testMove() |
void |
testReopen() |
void |
testTimeoutThenQueueFull() |
void |
testUnassignAndCrashBeforeResponse() |
void |
testUnassignAnUnassignedRegion() |
bulkSubmit, collectAssignmentManagerMetrics, createAndSubmitAssign, createAssignProcedure, createRegionInfo, createUnassignProcedure, doCrash, doRestart, getAssignMaxAttempts, sendTransitionReport, setUp, setupConfiguration, setUpMeta, submitProcedure, tearDown, waitOnFuturepublic static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public TestAssignmentManager()
public void testAssignWithGoodExec() throws Exception
Exceptionpublic void testAssignAndCrashBeforeResponse() throws Exception
Exceptionpublic void testUnassignAndCrashBeforeResponse() throws Exception
Exceptionpublic void testAssignSocketTimeout() throws Exception
Exceptionpublic void testAssignQueueFullOnce() throws Exception
Exceptionpublic void testTimeoutThenQueueFull() throws Exception
Exceptionprivate void testAssign(TestAssignmentManagerBase.MockRSExecutor executor) throws Exception
Exceptionprivate void testAssign(TestAssignmentManagerBase.MockRSExecutor executor, int nRegions) throws Exception
Exceptionpublic void testAssignAnAssignedRegion() throws Exception
Exceptionpublic void testUnassignAnUnassignedRegion() throws Exception
Exceptionpublic void testAssignMetaAndCrashBeforeResponse() throws Exception
Exceptionprivate void assertCloseThenOpen()
public void testReopen() throws Exception
Exceptionpublic void testLoadRegionFromMetaAfterRegionManuallyAdded() throws Exception
Exceptionpublic void testLoadRegionFromMetaRegionNotInMeta() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.