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(java.lang.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.
|
java.util.Properties |
getDistributedSystemProperties()
Returns a
Properties object used to configure a
connection to a DistributedSystem. |
protected java.lang.Object |
getEntry(VM vm,
java.lang.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,
java.lang.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(java.lang.String name)
public static void resetAckWaitThreshold()
public void testWaitForLatestMember()
throws java.lang.Throwable
java.lang.Throwablepublic void testRevokeAMember()
throws java.lang.Throwable
java.lang.Throwablepublic void testRevokeAHostBeforeInitialization()
throws java.lang.Throwable
java.lang.Throwablepublic void testWaitingMemberList()
throws java.lang.Throwable
java.lang.Throwablepublic void testDontWaitForOldMember()
throws java.lang.Throwable
java.lang.Throwablepublic void testSimultaneousCrash()
throws java.lang.Throwable
java.lang.Throwablepublic void testTransmitCrashedMembers()
throws java.lang.Throwable
java.lang.Throwablepublic void testRecoverFromNonPeristentRegion()
throws java.lang.Throwable
java.lang.Throwableprotected java.lang.Object getEntry(VM vm, java.lang.String key)
protected com.gemstone.gemfire.internal.cache.versions.RegionVersionVector getRVV(VM vm) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected AsyncInvocation createPersistentRegionAsync(VM vm, boolean diskSynchronous)
public void testPersistConflictOperations()
throws java.lang.Throwable
java.lang.Throwablepublic void testPersistConflictOperationsAsync()
throws java.lang.Throwable
java.lang.Throwablepublic void doTestPersistConflictOperations(boolean diskSync)
throws java.lang.Throwable
java.lang.Throwablepublic void testTransmitCrashedMembersWithNonPeristentRegion()
throws java.lang.Throwable
java.lang.Throwablepublic void testSplitBrain()
throws java.lang.Throwable
java.lang.Throwablepublic void testCrashDuringGII()
throws java.lang.Throwable
java.lang.Throwablepublic void testGIIDuringDestroy()
throws java.lang.Throwable
java.lang.Throwablepublic void testCrashDuringPreparePersistentId()
throws java.lang.Throwable
java.lang.Throwablepublic void testSplitBrainWithNonPersistentRegion()
throws java.lang.Throwable
java.lang.Throwablepublic void testMissingEntryOnDisk()
throws java.lang.Throwable
java.lang.Throwablepublic void testCompactFromAdmin()
throws java.lang.Throwable
java.lang.Throwablepublic void testCloseDuringRegionOperation()
throws java.lang.Throwable
java.lang.Throwablepublic void testRecoverAfterConflict()
throws java.lang.Throwable
java.lang.Throwableprotected void updateTheEntry(VM vm1)
protected void updateTheEntry(VM vm1, java.lang.String value)
protected void putAnEntry(VM vm0)
public java.util.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.