public class GIIDeltaDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected DistributedTestCase.ExpectedException |
expectedEx |
protected static java.lang.String |
REGION_NAME |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
GIIDeltaDUnitTest(java.lang.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,
java.lang.String regionName) |
protected void |
prepareForEachTest() |
protected void |
removeSystemPropertiesInVM(VM vm,
java.lang.String prop) |
static void |
resetSlowGII() |
static void |
setRegionName(java.lang.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,
java.lang.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,
java.lang.String key,
java.lang.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 java.lang.String REGION_NAME
protected DistributedTestCase.ExpectedException expectedEx
public GIIDeltaDUnitTest(java.lang.String name)
name - public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic static void setRegionName(java.lang.String testName)
public void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCasejava.lang.Exceptionprotected void prepareForEachTest()
public void testDeltaGIIWithSameRVV()
throws java.lang.Throwable
java.lang.Throwablepublic void testDeltaGIIWithExceptionList()
throws java.lang.Throwable
java.lang.Throwablepublic void testDeltaGIIWithOnlyUnfinishedOp()
throws java.lang.Throwable
java.lang.Throwablepublic void testDeltaGIIWithOnlyUnfinishedOp_GCAtR()
throws java.lang.Throwable
java.lang.Throwablepublic void testDeltaGIIWithDifferentRVVGC()
throws java.lang.Throwable
java.lang.Throwablepublic void testFullGIITriggeredByHigherRVVGC()
throws java.lang.Throwable
java.lang.Throwablepublic void testSavingRVVGC()
throws java.lang.Throwable
java.lang.Throwablepublic void testDeltaGIIWithoutRVVGC()
throws java.lang.Throwable
java.lang.Throwablepublic void testFullGIINotDorminatedByProviderRVVGC()
throws java.lang.Throwable
java.lang.Throwablepublic void testUnfinishedOpsWithoutExceptionList()
throws java.lang.Throwable
java.lang.Throwablepublic void testFillSpecialException()
throws java.lang.Throwable
java.lang.Throwablepublic void testFillSpecialException2()
throws java.lang.Throwable
java.lang.Throwablepublic void testHooks()
throws java.lang.Throwable
java.lang.Throwablepublic void testTombstoneGCInMiddleOfGII()
throws java.lang.Throwable
java.lang.Throwablepublic void testExpiredTombstoneSkippedAtProviderOnly()
throws java.lang.Throwable
java.lang.Throwablepublic void testRequesterHasHigherRVVGC()
throws java.lang.Throwable
java.lang.Throwablepublic void testDeltaGIIAfterClear()
throws java.lang.Throwable
java.lang.Throwablepublic void testClearAfterChunkEntries()
throws java.lang.Throwable
java.lang.Throwablepublic void testClearAfterSavedRVV()
throws java.lang.Throwable
java.lang.Throwablepublic void testFullGIIAfterClear()
throws java.lang.Throwable
java.lang.Throwablepublic void testFullGIITriggeredByTooManyUnfinishedOps()
throws java.lang.Throwable
java.lang.Throwablepublic void testRestartWithOnlyGIIBegion()
throws java.lang.Throwable
java.lang.Throwablepublic void testRecoverFromUntrustedRVV()
throws java.lang.Throwable
java.lang.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 removeSystemPropertiesInVM(VM vm, java.lang.String prop)
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)
public void waitToVerifyKey(VM vm, java.lang.String key, java.lang.String expect_value)
protected byte[] getRVVByteArray(VM vm, java.lang.String regionName) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected 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.ClassNotFoundExceptionprotected void verifyTombstoneExist(VM vm, java.lang.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.