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(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkData(VM vm0,
int startKey,
int endKey,
String value) |
protected void |
createData(VM vm,
int startKey,
int endKey,
String value) |
protected void |
delete(VM vm,
int startKey,
int endKey) |
void |
doTestRecovery(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(String name)
public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class PersistentReplicatedTestBaseExceptionpublic void testNoConcurrencyChecks()
public void testRecoveryWithKRF()
throws Throwable
Throwablepublic void testRecoveryWithoutKRF()
throws Throwable
Throwablepublic void testLotsOfTombstones()
throws Throwable
Throwablepublic void testLotsOfTombstonesExpiration()
throws Throwable
Throwablepublic void testConflictChecksDuringConcurrentDeltaGIIAndOtherOp()
public void doTestRecovery(Runnable doWhileOffline) throws Throwable
Throwablepublic void testSkipConflictChecksForGIIdEntries()
throws Throwable
Throwablepublic void testSkipConflictChecksForConcurrentOps()
throws Throwable
Throwablepublic void testUpdateRVVWithAsyncPersistence()
throws Throwable
Throwablepublic void testWriteCorrectVersionToKrf()
throws Throwable
Throwableprotected void delete(VM vm, int startKey, int endKey)
protected com.gemstone.gemfire.internal.cache.versions.RegionVersionVector getRVV(VM vm) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected com.gemstone.gemfire.internal.cache.versions.RegionVersionVector getDiskRVV(VM vm) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.