public class HAInterestPart2DUnitTest extends HAInterestBaseTest
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2cache, client_k1, client_k2, conn, exceptionOccured, host, isAfterRegistrationCallbackCalled, isBeforeInterestRecoveryCallbackCalled, isBeforeRegistrationCallbackCalled, k1, k2, pool, PORT1, PORT2, PORT3, REGION_NAME, server_k1, server_k1_updated, server_k2, server1, server2, server3logPerTest, reconnect, system, testName| Constructor and Description |
|---|
HAInterestPart2DUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
testBug35945()
Bug Test for Bug # 35945
A java level Deadlock between acquireConnection and RegionEntry
during processRecoveredEndpoint by Dead Server Monitor Thread.
|
void |
testDSMDetectsServerLiveJustAfterInterestRegistration()
Tests a scenario in which Dead Server Monitor detects Server Live Just After interest registration
then interst should be registerd on the newly detcted live server as well
|
void |
testDSMDetectsServerLiveJustBeforeInterestRegistration()
Tests a scenario in which Dead Server Monitor detects Server Live Just before interest registration
then interst should be registerd on the newly detcted live server as well
|
void |
testGIIFromSecondaryWhenDSMDetectsServerLive()
Tests a Scenario:
stop a secondary server and update the registered entries on the stopped server
start the server , DSM will recover interest list on this live server
and verify that as a part of recovery it does not refreshes
registerd entries from the server, because it is secondary
|
void |
testInterestRecoveryFailure()
Tests if failure occured in Interest recovery thread, then it should select new endpoint to
register interest
|
void |
testPrimaryFailureInUNregisterInterest()
Tests if Primary fails during interest un registration should initiate failover
should pick new primary
|
void |
testRefreshEntriesFromPrimaryWhenDSMDetectsServerLive()
Tests a Scenario:
Only one server, register interst on the server
stop server , and update the registered entries on the server
start the server , DSM will recover interest list on this live server
and verify that as a part of recovery it refreshes
registerd entries from the server, because it is primary
|
void |
testSecondaryFailureInUNRegisterInterest()
Tests if Secondary fails during interest un registration should add to dead Ep list
|
closeCache, createClientPoolCache, createClientPoolCacheConnectionToSingleServer, createClientPoolCacheWithSmallRetryInterval, createEntriesK1andK2, createEntriesK1andK2OnServer, createServerCache, createServerCacheWithLocalRegion, createServerEntriesK1andK2, getBackupVM, getBackupVM, getPrimaryVM, getPrimaryVM, getServerPort, getServerVM, putK1andK2, registerK1AndK2, registerK1AndK2OnPrimaryAndSecondaryAndVerifyResponse, reRegisterK1AndK2, setBridgeObserverForAfterRegistration, setBridgeObserverForBeforeInterestRecovery, setBridgeObserverForBeforeInterestRecoveryFailure, setBridgeObserverForBeforeRegistration, setUp, startServer, startServerAndPause, stopBothPrimaryAndSecondaryAndRegisterK1AndK2AndVerifyResponse, stopPrimaryAndRegisterK1AndK2AndVerifyResponse, stopPrimaryAndUnregisterRegisterK1, stopSecondaryAndRegisterK1AndK2AndVerifyResponse, stopSecondaryAndUNregisterK1, stopServer, tearDown2, unSetBridgeObserverForRegistrationCallback, verifyDeadAndLiveServers, verifyDispatcherIsAlive, verifyDispatcherIsNotAlive, verifyInterestRegistration, verifyInterestUNRegistration, verifyRefreshedEntriesFromServer, waitForAfterRegistrationCallback, waitForBeforeInterestRecoveryCallBack, waitForBeforeRegistrationCallbackaddExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, disconnectFromDS, dumpAllStacks, dumpMyThreads, dumpStack, dumpStack, dumpStack, dumpStackTrace, fail, getAllDistributedSystemProperties, getDistributedSystemProperties, getDUnitLocatorAddress, getDUnitLocatorPort, getDUnitLocatorString, getDUnitLogLevel, getIPLiteral, getLogWriter, getLonerSystem, getMcastSystem, getMcastSystem, getRepeatTimeoutMs, getServerHostName, getSystem, getSystem, getTestClass, getTestName, getUniqueName, getVMCount, incBBFlag, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVMRepeatingIfNecessary, invokeInLocator, invokeRepeatingIfNecessary, isConnectedToDS, join, noteTiming, pause, pause, perVMSetUp, realTearDown, setDiskStoreForGateway, setSystem, setTestName, staticPause, tearDown, unregisterAllDataSerializersFromAllVms, unregisterDataSerializerInThisVM, unregisterInstantiatorsInThisVM, waitForBBFlag, waitForCriterion, waitMutexassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic HAInterestPart2DUnitTest(String name)
public void testPrimaryFailureInUNregisterInterest()
throws Exception
Exceptionpublic void testSecondaryFailureInUNRegisterInterest()
throws Exception
Exceptionpublic void testDSMDetectsServerLiveJustBeforeInterestRegistration()
throws Exception
Exceptionpublic void testDSMDetectsServerLiveJustAfterInterestRegistration()
throws Exception
Exceptionpublic void testRefreshEntriesFromPrimaryWhenDSMDetectsServerLive()
throws Exception
Exceptionpublic void testGIIFromSecondaryWhenDSMDetectsServerLive()
throws Exception
Exceptionpublic void testBug35945()
throws Exception
ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.