public class GIIDeltaDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected DistributedTestCase.ExpectedException |
expectedEx |
protected static String |
REGION_NAME |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
GIIDeltaDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assignVMsToPandR(VM vm0,
VM vm1) |
protected void |
changeForceFullGII(VM vm,
boolean value,
boolean checkOnly) |
protected void |
changeTombstoneTimout(VM vm,
long value) |
protected void |
changeUnfinishedOperationLimit(VM vm,
int value) |
protected void |
closeCache(VM vm) |
protected void |
createDistributedRegion(VM vm) |
protected AsyncInvocation |
createDistributedRegionAsync(VM vm) |
protected void |
destroyRegion(VM vm) |
protected int |
getDeltaGIICount(VM vm) |
protected com.gemstone.gemfire.internal.cache.versions.RegionVersionVector |
getDiskRVV(VM vm) |
protected com.gemstone.gemfire.cache.RegionAttributes |
getRegionAttributes()
Returns region attributes for a
GLOBAL region |
protected com.gemstone.gemfire.internal.cache.versions.RegionVersionVector |
getRVV(VM vm) |
protected byte[] |
getRVVByteArray(VM vm,
String regionName) |
protected void |
prepareForEachTest() |
protected void |
removeSystemPropertiesInVM(VM vm,
String prop) |
static void |
resetSlowGII() |
static void |
setRegionName(String testName) |
void |
setUp()
Sets up the test (noop).
|
static void |
slowGII(long[] versionsToBlock) |
void |
tearDown2()
Tears down the test.
|
void |
testClearAfterChunkEntries()
P and R are peers, each holds a DR.
|
void |
testClearAfterSavedRVV()
P and R are peers, each holds a DR.
|
void |
testDeltaGIIAfterClear()
P and R are peers, each holds a DR.
|
void |
testDeltaGIIWithDifferentRVVGC()
vm0 and vm1 are peers, each holds a DR.
|
void |
testDeltaGIIWithExceptionList()
vm0 and vm1 are peers, each holds a DR.
|
void |
testDeltaGIIWithOnlyUnfinishedOp_GCAtR()
This is to test a race condition for bug#47616
vm0 and vm1 are peers, each holds a DR.
|
void |
testDeltaGIIWithOnlyUnfinishedOp()
vm0 and vm1 are peers, each holds a DR.
|
void |
testDeltaGIIWithoutRVVGC()
vm0 and vm1 are peers, each holds a DR.
|
void |
testDeltaGIIWithSameRVV()
vm0 and vm1 are peers, each holds a DR.
|
void |
testExpiredTombstoneSkippedAtProviderOnly()
vm0 and vm1 are peers, each holds a DR.
|
void |
testFillSpecialException()
P1, P2, P3
R does GII but wait at BeforeSavedReceivedRVV, so R's RVV=P3R0
P4, P5
R goes on to save received RVV.
|
void |
testFillSpecialException2()
P1, P2, P3
R does GII but wait at BeforeSavedReceivedRVV, so R's RVV=P3R0
P4, P5
R goes on to save received RVV.
|
void |
testFullGIIAfterClear()
P and R are peers, each holds a DR.
|
void |
testFullGIINotDorminatedByProviderRVVGC()
vm0 and vm1 are peers, each holds a DR.
|
void |
testFullGIITriggeredByHigherRVVGC()
vm0 and vm1 are peers, each holds a DR.
|
void |
testFullGIITriggeredByTooManyUnfinishedOps()
vm0 and vm1 are peers, each holds a DR.
|
void |
testHooks() |
void |
testRecoverFromUntrustedRVV()
Test the case where a member has an untrusted RVV and
still initializes from the local data.
|
void |
testRequesterHasHigherRVVGC()
vm0 and vm1 are peers, each holds a DR.
|
void |
testRestartWithOnlyGIIBegion()
P and R are peers, each holds a DR.
|
void |
testSavingRVVGC()
vm0(P), vm1(R), vm2(T) are peers, each holds a DR.
|
void |
testTombstoneGCInMiddleOfGII()
vm0 and vm1 are peers, each holds a DR.
|
void |
testUnfinishedOpsWithoutExceptionList()
Let R4, R5 unfinish, but R5 is the last operation from R.
|
protected void |
verifyDeltaSizeFromStats(VM vm,
int expectedKeyNum,
int expectedDeltaGIINum) |
protected void |
verifyTombstoneExist(VM vm,
String key,
boolean expectExist,
boolean expectExpired) |
void |
waitForCallbackStarted(VM vm,
com.gemstone.gemfire.internal.cache.InitialImageOperation.GIITestHookType callbacktype) |
void |
waitForToVerifyRVV(VM vm,
com.gemstone.gemfire.internal.cache.persistence.DiskStoreID member,
long expectedRegionVersion,
long[] exceptionList,
long expectedGCVersion) |
void |
waitToVerifyKey(VM vm,
String key,
String expect_value) |
addExceptionTag1, 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, toStringprotected static String REGION_NAME
protected DistributedTestCase.ExpectedException expectedEx
public GIIDeltaDUnitTest(String name)
name - public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic static void setRegionName(String testName)
public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCaseExceptionprotected void prepareForEachTest()
public void testDeltaGIIWithSameRVV()
throws Throwable
Throwablepublic void testDeltaGIIWithExceptionList()
throws Throwable
Throwablepublic void testDeltaGIIWithOnlyUnfinishedOp()
throws Throwable
Throwablepublic void testDeltaGIIWithOnlyUnfinishedOp_GCAtR()
throws Throwable
Throwablepublic void testDeltaGIIWithDifferentRVVGC()
throws Throwable
Throwablepublic void testFullGIITriggeredByHigherRVVGC()
throws Throwable
Throwablepublic void testSavingRVVGC()
throws Throwable
Throwablepublic void testDeltaGIIWithoutRVVGC()
throws Throwable
Throwablepublic void testFullGIINotDorminatedByProviderRVVGC()
throws Throwable
Throwablepublic void testUnfinishedOpsWithoutExceptionList()
throws Throwable
Throwablepublic void testFillSpecialException()
throws Throwable
Throwablepublic void testFillSpecialException2()
throws Throwable
Throwablepublic void testTombstoneGCInMiddleOfGII()
throws Throwable
Throwablepublic void testExpiredTombstoneSkippedAtProviderOnly()
throws Throwable
Throwablepublic void testRequesterHasHigherRVVGC()
throws Throwable
Throwablepublic void testDeltaGIIAfterClear()
throws Throwable
Throwablepublic void testClearAfterChunkEntries()
throws Throwable
Throwablepublic void testClearAfterSavedRVV()
throws Throwable
Throwablepublic void testFullGIIAfterClear()
throws Throwable
Throwablepublic void testFullGIITriggeredByTooManyUnfinishedOps()
throws Throwable
Throwablepublic void testRestartWithOnlyGIIBegion()
throws Throwable
Throwablepublic void testRecoverFromUntrustedRVV()
throws Throwable
Throwableprotected com.gemstone.gemfire.cache.RegionAttributes getRegionAttributes()
GLOBAL regionprotected void createDistributedRegion(VM vm)
protected AsyncInvocation createDistributedRegionAsync(VM vm)
protected void closeCache(VM vm)
protected void destroyRegion(VM vm)
protected void changeUnfinishedOperationLimit(VM vm, int value)
protected void changeTombstoneTimout(VM vm, long value)
protected void changeForceFullGII(VM vm, boolean value, boolean checkOnly)
protected void verifyDeltaSizeFromStats(VM vm, int expectedKeyNum, int expectedDeltaGIINum)
public void waitForToVerifyRVV(VM vm, com.gemstone.gemfire.internal.cache.persistence.DiskStoreID member, long expectedRegionVersion, long[] exceptionList, long expectedGCVersion)
public void waitForCallbackStarted(VM vm, com.gemstone.gemfire.internal.cache.InitialImageOperation.GIITestHookType callbacktype)
protected byte[] getRVVByteArray(VM vm, String regionName) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected 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
IOExceptionClassNotFoundExceptionprotected void verifyTombstoneExist(VM vm, String key, boolean expectExist, boolean expectExpired)
protected int getDeltaGIICount(VM vm)
public static void slowGII(long[] versionsToBlock)
public static void resetSlowGII()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.