public class PersistentRecoveryOrderDUnitTest extends PersistentReplicatedTestBase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2diskDir, MAX_WAIT, REGION_NAME, SAVED_ACK_WAIT_THRESHOLDcachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
PersistentRecoveryOrderDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected AsyncInvocation |
createPersistentRegionAsync(VM vm,
boolean diskSynchronous) |
void |
doTestPersistConflictOperations(boolean diskSync)
vm0 and vm1 are peers, each holds a DR.
|
Properties |
getDistributedSystemProperties()
Returns a
Properties object used to configure a
connection to a DistributedSystem. |
protected Object |
getEntry(VM vm,
String key) |
protected com.gemstone.gemfire.internal.cache.versions.RegionVersionVector |
getRVV(VM vm) |
protected void |
putAnEntry(VM vm0) |
static void |
resetAckWaitThreshold() |
void |
testCloseDuringRegionOperation()
disabled since the test tries to check for NoDataStoreAvailableException
while that is thrown only for GemFireXD system (see #48061)
|
void |
testCompactFromAdmin()
Tests to make sure that we stop waiting for a member
that we revoke.
|
void |
testCrashDuringGII()
Test to make sure that if if a member crashes
while a GII is in progress, we wait
for the member to come back for starting.
|
void |
testCrashDuringPreparePersistentId() |
void |
testDontWaitForOldMember()
Use Case
AB are alive
A crashes.
|
void |
testGIIDuringDestroy()
Test to make sure we don't leak any persistent ids if a member does GII
while a distributed destroy is in progress
|
void |
testMissingEntryOnDisk() |
void |
testPersistConflictOperations() |
void |
testPersistConflictOperationsAsync() |
void |
testRecoverAfterConflict()
Tests to make sure that after we get a conflicting
persistent data exception, we can still recover.
|
void |
testRecoverFromNonPeristentRegion()
Tests that a persistent region cannot recover from
a non persistent region.
|
void |
testRevokeAHostBeforeInitialization()
Tests to make sure that we can revoke a member
before initialization, and that member will stay revoked
|
void |
testRevokeAMember()
Tests to make sure that we stop waiting for a member
that we revoke.
|
void |
testSimultaneousCrash()
Tests that if two members crash simultaneously, they
negotiate which member should initialize with what is
on disk and which member should copy data from that member.
|
void |
testSplitBrain() |
void |
testSplitBrainWithNonPersistentRegion() |
void |
testTransmitCrashedMembers()
Tests that persistent members pass along the list
of crashed members to later persistent members.
|
void |
testTransmitCrashedMembersWithNonPeristentRegion()
Tests that even non persistent regions can transmit the list
of crashed members to other persistent regions, So that the persistent
regions can negotiate who has the latest data during recovery.
|
void |
testWaitForLatestMember()
Tests to make sure that a persistent region will wait
for any members that were online when is crashed before starting up.
|
void |
testWaitingMemberList()
Test which members show up in the list of members we're waiting on.
|
protected void |
updateTheEntry(VM vm1) |
protected void |
updateTheEntry(VM vm1,
String value) |
backupDir, closeCache, closeCacheAsync, closeRegion, createNonPersistentRegion, createPersistentRegion, createPersistentRegionAsync, createPersistentRegionWithoutCompaction, createPersistentRegionWithWait, getDiskDirForVM, restoreBackup, setRegionName, setUp, tearDown2, waitForBlockedInitializationaddExceptionTag1, basicGetCache, beginCacheXml, cleanDiskDirs, closeAllCache, closeCache, createLonerCache, createMcastCache, createMcastCache, createRegion, createRegion, createRootRegion, createRootRegion, disconnectFromDS, finishCacheXml, finishCacheXml, getCache, getCache, getCache, getCache, getClientCache, getDiskDirs, getGemfireCache, getInternalRegionArguments, getRootRegion, getRootRegion, hasCache, remoteTearDown, removeExceptionTag1, sendSerialMessageToAll, sendUnorderedMessageToAlladdExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, dumpAllStacks, dumpMyThreads, dumpStack, dumpStack, dumpStack, dumpStackTrace, fail, getAllDistributedSystemProperties, 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 PersistentRecoveryOrderDUnitTest(String name)
public static void resetAckWaitThreshold()
public void testWaitForLatestMember()
throws Throwable
Throwablepublic void testRevokeAMember()
throws Throwable
Throwablepublic void testRevokeAHostBeforeInitialization()
throws Throwable
Throwablepublic void testWaitingMemberList()
throws Throwable
Throwablepublic void testDontWaitForOldMember()
throws Throwable
Throwablepublic void testSimultaneousCrash()
throws Throwable
Throwablepublic void testTransmitCrashedMembers()
throws Throwable
Throwablepublic void testRecoverFromNonPeristentRegion()
throws Throwable
Throwableprotected com.gemstone.gemfire.internal.cache.versions.RegionVersionVector getRVV(VM vm) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected AsyncInvocation createPersistentRegionAsync(VM vm, boolean diskSynchronous)
public void testPersistConflictOperations()
throws Throwable
Throwablepublic void testPersistConflictOperationsAsync()
throws Throwable
Throwablepublic void doTestPersistConflictOperations(boolean diskSync)
throws Throwable
Throwablepublic void testTransmitCrashedMembersWithNonPeristentRegion()
throws Throwable
Throwablepublic void testCrashDuringGII()
throws Throwable
Throwablepublic void testGIIDuringDestroy()
throws Throwable
Throwablepublic void testCrashDuringPreparePersistentId()
throws Throwable
Throwablepublic void testSplitBrainWithNonPersistentRegion()
throws Throwable
Throwablepublic void testCompactFromAdmin()
throws Throwable
Throwablepublic void testCloseDuringRegionOperation()
throws Throwable
Throwablepublic void testRecoverAfterConflict()
throws Throwable
Throwableprotected void updateTheEntry(VM vm1)
protected void putAnEntry(VM vm0)
public Properties getDistributedSystemProperties()
DistributedTestCaseProperties object used to configure a
connection to a DistributedSystem.
Unless overridden, this method will return an empty
Properties object.getDistributedSystemProperties in class DistributedTestCaseCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.