public class BridgeWriterMiscDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.client.internal.Connection |
conn |
protected static com.gemstone.gemfire.cache.client.internal.PoolImpl |
pool |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
BridgeWriterMiscDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static com.gemstone.gemfire.cache.client.Pool |
_createClientCache(String h,
int port,
boolean empty) |
static void |
closeBothRegions() |
static void |
closeCache() |
static void |
closeRegion1() |
void |
concurrentMapTest(VM clientVM,
String rName)
Do putIfAbsent(), replace(Object, Object),
replace(Object, Object, Object), remove(Object, Object) operations
|
static com.gemstone.gemfire.cache.client.Pool |
createClientCache(String h,
int port) |
static void |
createClientCacheV(String h,
int port) |
static void |
createEmptyClientCache(String h,
int port) |
static Integer |
createServerCache(Boolean notifyBySubscription,
Integer maxThreads) |
static void |
destroyPRRegion() |
static void |
destroyRegion1() |
static void |
destroyRegion2() |
protected int |
getMaxThreads() |
static void |
populateCache() |
static void |
put() |
static void |
registerInterest() |
static void |
registerInterestForInvalidatesInBothTheRegions() |
static void |
registerInterestInBothTheRegions() |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testBug35380()
Cycling a DistributedSystem with an initialized BridgeWriter causes interest registration NPE
Test Scenario:
Create a DistributedSystem (DS1).
|
void |
testBug43407()
Test for bug 43407, where LRU in the client caused an entry to be
evicted with DESTROY(), then the client invalidated the entry and
did a get().
|
void |
testCCPDestroyOnLastDestroyRegion()
Test for single BridgeWriter used across two regions: notify by
subscription is true.
|
void |
testConcurrentOperationsWithDRandPR() |
void |
testConcurrentOperationsWithDRandPRandEmptyClient() |
void |
testInvalidatesPropagateOnRegionHavingNoBridgeWriter()
Create cache, create bridge writer, notify-by-subscription=false,
create a region and on client and on server.
|
void |
testInvalidatesPropagateOnTwoRegionsHavingCommonBridgeWriter()
Test for single BridgeWriter used across two regions:If notify by
subscription is false , both the regions should receive invalidates for the
updates on server in their respective regions
|
void |
testProxyCreationBeforeCacheCreation()
Create proxy before cache creation, create cache, create two regions,
attach same bridge writer to both of the regions Region interests AL_KEYS
on both the regions, notify-by-subscription=true .
|
void |
testRegionCloseWithSameBridgeWriter()
Test for single BridgeWriter used across two regions: notify by subscription is true.
|
void |
testSameBridgeWriterForTwoRegionHavingALLKEYSInterest()
Test for single BridgeWriter used across two regions: notify by subscription is true.
|
void |
testSameBridgeWriterForTwoRegionHavingDifferentInterestList()
Test for single BridgeWriter used across two regions: notify by subscription is true.
|
static void |
unsetSlowDispatcherFlag()
set the boolean for starting the dispatcher thread a bit later to FALSE.
|
static void |
verifyCacheClientProxyOnServer() |
static void |
verifyCacheClientProxyOnServer(String regionName) |
static void |
verifyInterestListOnServer() |
static void |
verifyInvalidatesOnBothRegions() |
static void |
verifyNoCacheClientProxyOnServer() |
static void |
verifyUpdates() |
static void |
verifyUpdatesOnRegion2() |
addExceptionTag1, basicGetCache, beginCacheXml, cleanDiskDirs, closeAllCache, 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 com.gemstone.gemfire.cache.client.internal.PoolImpl pool
protected static com.gemstone.gemfire.cache.client.internal.Connection conn
public BridgeWriterMiscDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void testConcurrentOperationsWithDRandPR()
throws Exception
Exceptionpublic void testConcurrentOperationsWithDRandPRandEmptyClient()
throws Exception
Exceptionpublic void concurrentMapTest(VM clientVM, String rName)
public void testSameBridgeWriterForTwoRegionHavingDifferentInterestList()
throws Exception
Exceptionpublic void testSameBridgeWriterForTwoRegionHavingALLKEYSInterest()
throws Exception
Exceptionpublic void testRegionCloseWithSameBridgeWriter()
throws Exception
Exceptionpublic void testCCPDestroyOnLastDestroyRegion()
throws Exception
Exceptionpublic void testInvalidatesPropagateOnTwoRegionsHavingCommonBridgeWriter()
throws Exception
Exceptionpublic void testBug43407()
throws Exception
Exceptionpublic void testInvalidatesPropagateOnRegionHavingNoBridgeWriter()
throws Exception
Exceptionpublic void testProxyCreationBeforeCacheCreation()
throws Exception
Exceptionpublic void testBug35380()
throws Exception
Exceptionpublic static void createClientCacheV(String h, int port) throws Exception
Exceptionpublic static void createEmptyClientCache(String h, int port) throws Exception
Exceptionpublic static com.gemstone.gemfire.cache.client.Pool createClientCache(String h, int port) throws Exception
Exceptionpublic static com.gemstone.gemfire.cache.client.Pool _createClientCache(String h, int port, boolean empty) throws Exception
Exceptionpublic static Integer createServerCache(Boolean notifyBySubscription, Integer maxThreads) throws Exception
Exceptionprotected int getMaxThreads()
public static void registerInterest()
public static void registerInterestForInvalidatesInBothTheRegions()
public static void registerInterestInBothTheRegions()
public static void closeRegion1()
public static void closeBothRegions()
public static void destroyRegion1()
public static void destroyRegion2()
public static void destroyPRRegion()
public static void verifyInterestListOnServer()
public static void verifyNoCacheClientProxyOnServer()
public static void verifyCacheClientProxyOnServer(String regionName)
public static void verifyCacheClientProxyOnServer()
public static void populateCache()
public static void put()
public static void verifyUpdates()
public static void verifyInvalidatesOnBothRegions()
public static void verifyUpdatesOnRegion2()
public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCaseExceptionpublic static void closeCache()
public static void unsetSlowDispatcherFlag()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.