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 java.lang.String |
DELTA_KEY |
protected static com.gemstone.gemfire.cache.Region |
deltaPR |
static java.lang.String |
LAST_KEY |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
PRDeltaPropagationDUnitTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkCloning() |
static void |
checkDeltaInvoked(java.lang.Integer deltaSent) |
static java.lang.Boolean |
checkForDelta() |
static void |
checkForFullObject() |
static void |
checkIsFailed() |
static void |
checkRegionSize(java.lang.Integer i) |
static void |
checkToDeltaCounter(java.lang.Integer count) |
static java.lang.Boolean |
checkVMRecievesDeltaObjectThrCQListner() |
static void |
closeCache() |
void |
createCache(java.util.Properties props) |
static void |
createCacheInAllPRVms() |
static void |
createCacheInVm() |
static java.lang.Integer |
createCacheServerWithPR(java.lang.String partitionedRegionName,
java.lang.Integer redundancy,
java.lang.Integer localMaxMemory,
java.lang.Integer totalNumBuckets,
java.lang.Boolean setExpiry,
com.gemstone.gemfire.compression.Compressor compressor) |
static void |
createClientCache(java.lang.Integer port1,
java.lang.Boolean subscriptionEnable,
java.lang.Boolean isEmpty,
java.lang.Boolean isCq) |
static void |
createClientCache(java.lang.Integer port1,
java.lang.Integer port2) |
static void |
createPR(java.lang.String partitionedRegionName,
java.lang.Integer redundancy,
java.lang.Integer localMaxMemory,
java.lang.Integer totalNumBuckets,
java.lang.Boolean setExpiry,
com.gemstone.gemfire.compression.Compressor compressor) |
static java.lang.Integer |
createServerCache(java.lang.Boolean isListAttach,
java.lang.Boolean isEmpty) |
static void |
fromDeltaCounter(java.lang.Integer count) |
static void |
invalidateDeltaKey() |
static java.lang.Boolean |
isFailed() |
static boolean |
isLastKeyReceived() |
static void |
put() |
static int |
putsWhichReturnsDeltaSent() |
static void |
putWithExpiry() |
static void |
resetAll() |
static void |
setForOldNewCQVarification(java.lang.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(java.lang.Integer deltas) |
static java.lang.Boolean |
verifyQueryDestroyExecuted() |
static java.lang.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 java.lang.String DELTA_KEY
public static java.lang.String LAST_KEY
public PRDeltaPropagationDUnitTest(java.lang.String name)
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void testDeltaPropagationForPR()
throws java.lang.Throwable
PutMessage delta.
3) From primary to secondary delta gets propagated as part RR distribution.java.lang.Throwablepublic void testDeltaPropagationForPRFailover()
throws java.lang.Throwable
java.lang.Throwablepublic void testDeltaPropagationForPRFailoverWithCompression()
throws java.lang.Throwable
java.lang.Throwablepublic void testDeltaPropagationForPRWithExpiry()
throws java.lang.Throwable
java.lang.Throwablepublic void testDeltaPropagationPRAccessorAsBridgeServer()
throws java.lang.Throwable
PutMessage delta.
3) From data store to client delta should get propagated.java.lang.Throwablepublic void testDeltaPropagationPRAccessorAsBridgeServerWithDeltaException()
throws java.lang.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.java.lang.Throwablepublic void testDeltaPropagationClientEmptyPRAccessorAsBridgeServerWithDeltaException()
throws java.lang.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.java.lang.Throwablepublic void testDeltaPropagationReplicatedRegionPeerWithDeltaException()
throws java.lang.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.java.lang.Throwablepublic void testCqClientConnectAccessorAndDataStore()
throws java.lang.Throwable
java.lang.Throwablepublic void testClientOnAccessorReceivesCqEvents()
throws java.lang.Throwable
java.lang.Throwablepublic void testCQClientOnRedundantBucketReceivesCQEvents()
throws java.lang.Throwable
java.lang.Throwablepublic void testCQRIClientOnRedundantBucketReceivesDeltaAndCQEvents()
throws java.lang.Throwable
java.lang.Throwablepublic void testDeltaPropagationWithAdjunctMessaging()
throws java.lang.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.java.lang.Throwablepublic void testDeltaPropagationWithAdjunctMessagingForEmptyClient()
throws java.lang.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.java.lang.Throwablepublic static void checkToDeltaCounter(java.lang.Integer count)
public static void fromDeltaCounter(java.lang.Integer count)
public static void checkIsFailed()
public static java.lang.Boolean isFailed()
public static void checkRegionSize(java.lang.Integer i)
public static void checkCloning()
public static void invalidateDeltaKey()
public static void createCacheInVm()
public void createCache(java.util.Properties props)
public static void createPR(java.lang.String partitionedRegionName,
java.lang.Integer redundancy,
java.lang.Integer localMaxMemory,
java.lang.Integer totalNumBuckets,
java.lang.Boolean setExpiry,
com.gemstone.gemfire.compression.Compressor compressor)
public static java.lang.Integer createCacheServerWithPR(java.lang.String partitionedRegionName,
java.lang.Integer redundancy,
java.lang.Integer localMaxMemory,
java.lang.Integer totalNumBuckets,
java.lang.Boolean setExpiry,
com.gemstone.gemfire.compression.Compressor compressor)
public static java.lang.Integer createServerCache(java.lang.Boolean isListAttach,
java.lang.Boolean isEmpty)
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache(java.lang.Integer port1,
java.lang.Boolean subscriptionEnable,
java.lang.Boolean isEmpty,
java.lang.Boolean isCq)
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache(java.lang.Integer port1,
java.lang.Integer port2)
throws java.lang.Exception
java.lang.Exceptionpublic static void createCacheInAllPRVms()
public static void put()
throws java.lang.Exception
java.lang.Exceptionpublic static void putWithExpiry()
throws java.lang.Exception
java.lang.Exceptionpublic static int putsWhichReturnsDeltaSent()
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Boolean checkForDelta()
public static void checkForFullObject()
public static void checkDeltaInvoked(java.lang.Integer deltaSent)
public static void waitForLastKey()
public static java.lang.Boolean verifyQueryUpdateExecuted()
public static java.lang.Boolean verifyQueryDestroyExecuted()
public static java.lang.Boolean checkVMRecievesDeltaObjectThrCQListner()
public static boolean isLastKeyReceived()
public static void verifyDeltaSent(java.lang.Integer deltas)
public static void resetAll()
public void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCasejava.lang.Exceptionpublic static void closeCache()
public static void setForOldNewCQVarification(java.lang.Boolean forOldNewCQVarification)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.