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, waitOnFuture
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public TestAssignmentManager()
public void testAssignWithGoodExec() throws Exception
Exception
public void testAssignAndCrashBeforeResponse() throws Exception
Exception
public void testUnassignAndCrashBeforeResponse() throws Exception
Exception
public void testAssignSocketTimeout() throws Exception
Exception
public void testAssignQueueFullOnce() throws Exception
Exception
public void testTimeoutThenQueueFull() throws Exception
Exception
private void testAssign(TestAssignmentManagerBase.MockRSExecutor executor) throws Exception
Exception
private void testAssign(TestAssignmentManagerBase.MockRSExecutor executor, int nRegions) throws Exception
Exception
public void testAssignAnAssignedRegion() throws Exception
Exception
public void testUnassignAnUnassignedRegion() throws Exception
Exception
public void testAssignMetaAndCrashBeforeResponse() throws Exception
Exception
private void assertCloseThenOpen()
public void testReopen() throws Exception
Exception
public void testLoadRegionFromMetaAfterRegionManuallyAdded() throws Exception
Exception
public void testLoadRegionFromMetaRegionNotInMeta() throws Exception
Exception
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.