public class PersistentRVVRecoveryDUnitTest extends PersistentReplicatedTestBase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2diskDir, MAX_WAIT, REGION_NAME, SAVED_ACK_WAIT_THRESHOLDcachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
PersistentRVVRecoveryDUnitTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkData(VM vm0,
int startKey,
int endKey,
java.lang.String value) |
protected void |
createData(VM vm,
int startKey,
int endKey,
java.lang.String value) |
protected void |
delete(VM vm,
int startKey,
int endKey) |
void |
doTestRecovery(java.lang.Runnable doWhileOffline) |
protected com.gemstone.gemfire.internal.cache.versions.RegionVersionVector |
getDiskRVV(VM vm) |
protected com.gemstone.gemfire.internal.cache.versions.RegionVersionVector |
getRVV(VM vm) |
void |
tearDown2()
Tears down the test.
|
void |
testConflictChecksDuringConcurrentDeltaGIIAndOtherOp()
This test creates 2 VMs in a distributed system with a persistent
PartitionedRegion and one VM (VM1) puts an entry in region.
|
void |
testLotsOfTombstones()
Test that we correctly recover and expire recovered tombstones, with compaction enabled
|
void |
testLotsOfTombstonesExpiration()
Test that we correctly recover and expire recovered tombstones, with
compaction enabled.
|
void |
testNoConcurrencyChecks() |
void |
testRecoveryWithKRF()
Test that we can recover the RVV information with some normal
usage.
|
void |
testRecoveryWithoutKRF()
Test that we can recover the RVV information if the krf is missing
|
void |
testSkipConflictChecksForConcurrentOps()
Test that we skip conflict checks with entries that are on
disk compared to entries that come in as part of a concurrent operation
|
void |
testSkipConflictChecksForGIIdEntries()
Test that we skip conflict checks with entries that are on
disk compared to entries that come in as part of a GII
|
void |
testUpdateRVVWithAsyncPersistence()
Test that with concurrent updates to an async disk region,
we correctly update the RVV On disk
|
void |
testWriteCorrectVersionToKrf()
Test that when we generate a krf, we write the version tag
that matches the entry in the crf.
|
backupDir, closeCache, closeCacheAsync, closeRegion, createNonPersistentRegion, createPersistentRegion, createPersistentRegionAsync, createPersistentRegionWithoutCompaction, createPersistentRegionWithWait, getDiskDirForVM, restoreBackup, setRegionName, setUp, 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, 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 PersistentRVVRecoveryDUnitTest(java.lang.String name)
public void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class PersistentReplicatedTestBasejava.lang.Exceptionpublic void testNoConcurrencyChecks()
public void testRecoveryWithKRF()
throws java.lang.Throwable
java.lang.Throwablepublic void testRecoveryWithoutKRF()
throws java.lang.Throwable
java.lang.Throwablepublic void testLotsOfTombstones()
throws java.lang.Throwable
java.lang.Throwablepublic void testLotsOfTombstonesExpiration()
throws java.lang.Throwable
java.lang.Throwablepublic void testConflictChecksDuringConcurrentDeltaGIIAndOtherOp()
public void doTestRecovery(java.lang.Runnable doWhileOffline)
throws java.lang.Throwable
java.lang.Throwablepublic void testSkipConflictChecksForGIIdEntries()
throws java.lang.Throwable
java.lang.Throwablepublic void testSkipConflictChecksForConcurrentOps()
throws java.lang.Throwable
java.lang.Throwablepublic void testUpdateRVVWithAsyncPersistence()
throws java.lang.Throwable
java.lang.Throwablepublic void testWriteCorrectVersionToKrf()
throws java.lang.Throwable
java.lang.Throwableprotected void createData(VM vm, int startKey, int endKey, java.lang.String value)
protected void checkData(VM vm0, int startKey, int endKey, java.lang.String value)
protected void delete(VM vm, int startKey, int endKey)
protected com.gemstone.gemfire.internal.cache.versions.RegionVersionVector getRVV(VM vm) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected com.gemstone.gemfire.internal.cache.versions.RegionVersionVector getDiskRVV(VM vm) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.