public class PRDeltaPropagationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Cache |
cache |
protected static VM |
client1 |
protected static VM |
dataStore1 |
protected static VM |
dataStore2 |
protected static VM |
dataStore3 |
static String |
DELTA_KEY |
protected static com.gemstone.gemfire.cache.Region |
deltaPR |
static String |
LAST_KEY |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
PRDeltaPropagationDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkCloning() |
static void |
checkDeltaInvoked(Integer deltaSent) |
static Boolean |
checkForDelta() |
static void |
checkForFullObject() |
static void |
checkIsFailed() |
static void |
checkRegionSize(Integer i) |
static void |
checkToDeltaCounter(Integer count) |
static Boolean |
checkVMRecievesDeltaObjectThrCQListner() |
static void |
closeCache() |
void |
createCache(Properties props) |
static void |
createCacheInAllPRVms() |
static void |
createCacheInVm() |
static Integer |
createCacheServerWithPR(String partitionedRegionName,
Integer redundancy,
Integer localMaxMemory,
Integer totalNumBuckets,
Boolean setExpiry,
com.gemstone.gemfire.compression.Compressor compressor) |
static void |
createClientCache(Integer port1,
Boolean subscriptionEnable,
Boolean isEmpty,
Boolean isCq) |
static void |
createClientCache(Integer port1,
Integer port2) |
static void |
createPR(String partitionedRegionName,
Integer redundancy,
Integer localMaxMemory,
Integer totalNumBuckets,
Boolean setExpiry,
com.gemstone.gemfire.compression.Compressor compressor) |
static Integer |
createServerCache(Boolean isListAttach,
Boolean isEmpty) |
static void |
fromDeltaCounter(Integer count) |
static void |
invalidateDeltaKey() |
static Boolean |
isFailed() |
static boolean |
isLastKeyReceived() |
static void |
put() |
static int |
putsWhichReturnsDeltaSent() |
static void |
putWithExpiry() |
static void |
resetAll() |
static void |
setForOldNewCQVarification(Boolean forOldNewCQVarification) |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testClientOnAccessorReceivesCqEvents()
Toplogy: PR: Accessor, dataStore.
|
void |
testCqClientConnectAccessorAndDataStore()
1) Put delta objects on feeder connected accessor bridge server.
|
void |
testCQClientOnRedundantBucketReceivesCQEvents()
Toplogy: PR: Accessor,DataStore,Bridge server;
configured for 2 buckets and redundancy 1
DataStore has primary while BridgeServer has secondary of bucket.
|
void |
testCQRIClientOnRedundantBucketReceivesDeltaAndCQEvents()
Toplogy: PR: Accessor,DataStore,Bridge server;
configured for 2 buckets and redundancy 1
DataStore has primary while BridgeServer has secondary of bucket.
|
void |
testDeltaPropagationClientEmptyPRAccessorAsBridgeServerWithDeltaException()
1) Put delta objects on client feeder with data policy as empty, connected PR accessor bridge server.
|
void |
testDeltaPropagationForPR()
1) Put delta objects on accessor node.
|
void |
testDeltaPropagationForPRFailover()
Check delta propagation works properly with PR failover.
|
void |
testDeltaPropagationForPRFailoverWithCompression() |
void |
testDeltaPropagationForPRWithExpiry()
Check full object gets resend if delta can not be applied
|
void |
testDeltaPropagationPRAccessorAsBridgeServer()
1) Put delta objects on client feeder connected PR accessor bridge server.
|
void |
testDeltaPropagationPRAccessorAsBridgeServerWithDeltaException()
1) Put delta objects on client feeder connected PR accessor bridge server.
|
void |
testDeltaPropagationReplicatedRegionPeerWithDeltaException()
1) Put delta objects on client feeder connected accessor bridge server.
|
void |
testDeltaPropagationWithAdjunctMessaging()
1) Put delta objects on client feeder connected PR accessor bridge server.
|
void |
testDeltaPropagationWithAdjunctMessagingForEmptyClient()
1) Accessor is a Feeder.From accessor to data store delta gets propagated as part of
PutMessage delta. |
static void |
verifyDeltaSent(Integer deltas) |
static Boolean |
verifyQueryDestroyExecuted() |
static Boolean |
verifyQueryUpdateExecuted() |
static void |
waitForLastKey() |
addExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, disconnectFromDS, 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 com.gemstone.gemfire.cache.Cache cache
protected static VM dataStore1
protected static VM dataStore2
protected static VM dataStore3
protected static VM client1
protected static com.gemstone.gemfire.cache.Region deltaPR
public static String DELTA_KEY
public static String LAST_KEY
public PRDeltaPropagationDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void testDeltaPropagationForPR()
throws Throwable
PutMessage delta.
3) From primary to secondary delta gets propagated as part RR distribution.Throwablepublic void testDeltaPropagationForPRFailover()
throws Throwable
Throwablepublic void testDeltaPropagationForPRFailoverWithCompression()
throws Throwable
Throwablepublic void testDeltaPropagationForPRWithExpiry()
throws Throwable
Throwablepublic void testDeltaPropagationPRAccessorAsBridgeServer()
throws Throwable
PutMessage delta.
3) From data store to client delta should get propagated.Throwablepublic void testDeltaPropagationPRAccessorAsBridgeServerWithDeltaException()
throws Throwable
PutMessage delta.
3) Exception occurs when applying delta on
datastore node. This invalid delta exception propagated back to client
through accessor.
4) Client sends full object in response.Throwablepublic void testDeltaPropagationClientEmptyPRAccessorAsBridgeServerWithDeltaException()
throws Throwable
PutMessage delta.
3) Exception occurs when applying delta on
datastore node. This invalid delta exception propagated back to client
through accessor.
4) Client sends full object in response.Throwablepublic void testDeltaPropagationReplicatedRegionPeerWithDeltaException()
throws Throwable
UpdateMessage delta.
3) Exception occurs when applying delta on
datastore node. This invalid delta exception propagated back to client
through accessor.
4) Client sends full object in response.Throwablepublic void testCqClientConnectAccessorAndDataStore()
throws Throwable
Throwablepublic void testClientOnAccessorReceivesCqEvents()
throws Throwable
Throwablepublic void testCQClientOnRedundantBucketReceivesCQEvents()
throws Throwable
Throwablepublic void testCQRIClientOnRedundantBucketReceivesDeltaAndCQEvents()
throws Throwable
Throwablepublic void testDeltaPropagationWithAdjunctMessaging()
throws Throwable
PutMessage delta.
3) From data store to accessor delta + full value gets propagted as part of Adjunct Message.
4) From accessor to client delta should get propagated.Throwablepublic void testDeltaPropagationWithAdjunctMessagingForEmptyClient()
throws Throwable
PutMessage delta.
2) From data store to accessor delta + full value gets propagted as part of Adjunct Message.
3) From accessor to a client with data policy normal delta should get propagated.
4) From accessor to client with data policy empty full value should get propagated.Throwablepublic static void checkToDeltaCounter(Integer count)
public static void fromDeltaCounter(Integer count)
public static void checkIsFailed()
public static Boolean isFailed()
public static void checkRegionSize(Integer i)
public static void checkCloning()
public static void invalidateDeltaKey()
public static void createCacheInVm()
public void createCache(Properties props)
public static void createPR(String partitionedRegionName, Integer redundancy, Integer localMaxMemory, Integer totalNumBuckets, Boolean setExpiry, com.gemstone.gemfire.compression.Compressor compressor)
public static Integer createCacheServerWithPR(String partitionedRegionName, Integer redundancy, Integer localMaxMemory, Integer totalNumBuckets, Boolean setExpiry, com.gemstone.gemfire.compression.Compressor compressor)
public static Integer createServerCache(Boolean isListAttach, Boolean isEmpty) throws Exception
Exceptionpublic static void createClientCache(Integer port1, Boolean subscriptionEnable, Boolean isEmpty, Boolean isCq) throws Exception
Exceptionpublic static void createClientCache(Integer port1, Integer port2) throws Exception
Exceptionpublic static void createCacheInAllPRVms()
public static int putsWhichReturnsDeltaSent()
throws Exception
Exceptionpublic static Boolean checkForDelta()
public static void checkForFullObject()
public static void checkDeltaInvoked(Integer deltaSent)
public static void waitForLastKey()
public static Boolean verifyQueryUpdateExecuted()
public static Boolean verifyQueryDestroyExecuted()
public static Boolean checkVMRecievesDeltaObjectThrCQListner()
public static boolean isLastKeyReceived()
public static void verifyDeltaSent(Integer deltas)
public static void resetAll()
public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCaseExceptionpublic static void closeCache()
public static void setForOldNewCQVarification(Boolean forOldNewCQVarification)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.