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(java.lang.String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static com.gemstone.gemfire.cache.client.Pool |
_createClientCache(java.lang.String h,
int port,
boolean empty) |
static void |
closeBothRegions() |
static void |
closeCache() |
static void |
closeRegion1() |
void |
concurrentMapTest(VM clientVM,
java.lang.String rName)
Do putIfAbsent(), replace(Object, Object),
replace(Object, Object, Object), remove(Object, Object) operations
|
static com.gemstone.gemfire.cache.client.Pool |
createClientCache(java.lang.String h,
int port) |
static void |
createClientCacheV(java.lang.String h,
int port) |
static void |
createEmptyClientCache(java.lang.String h,
int port) |
static java.lang.Integer |
createServerCache(java.lang.Boolean notifyBySubscription,
java.lang.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(java.lang.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(java.lang.String name)
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void testConcurrentOperationsWithDRandPR()
throws java.lang.Exception
java.lang.Exceptionpublic void testConcurrentOperationsWithDRandPRandEmptyClient()
throws java.lang.Exception
java.lang.Exceptionpublic void concurrentMapTest(VM clientVM, java.lang.String rName)
public void testSameBridgeWriterForTwoRegionHavingDifferentInterestList()
throws java.lang.Exception
java.lang.Exceptionpublic void testSameBridgeWriterForTwoRegionHavingALLKEYSInterest()
throws java.lang.Exception
java.lang.Exceptionpublic void testRegionCloseWithSameBridgeWriter()
throws java.lang.Exception
java.lang.Exceptionpublic void testCCPDestroyOnLastDestroyRegion()
throws java.lang.Exception
java.lang.Exceptionpublic void testInvalidatesPropagateOnTwoRegionsHavingCommonBridgeWriter()
throws java.lang.Exception
java.lang.Exceptionpublic void testBug43407()
throws java.lang.Exception
java.lang.Exceptionpublic void testInvalidatesPropagateOnRegionHavingNoBridgeWriter()
throws java.lang.Exception
java.lang.Exceptionpublic void testProxyCreationBeforeCacheCreation()
throws java.lang.Exception
java.lang.Exceptionpublic void testBug35380()
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCacheV(java.lang.String h,
int port)
throws java.lang.Exception
java.lang.Exceptionpublic static void createEmptyClientCache(java.lang.String h,
int port)
throws java.lang.Exception
java.lang.Exceptionpublic static com.gemstone.gemfire.cache.client.Pool createClientCache(java.lang.String h,
int port)
throws java.lang.Exception
java.lang.Exceptionpublic static com.gemstone.gemfire.cache.client.Pool _createClientCache(java.lang.String h,
int port,
boolean empty)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Integer createServerCache(java.lang.Boolean notifyBySubscription,
java.lang.Integer maxThreads)
throws java.lang.Exception
java.lang.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(java.lang.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 java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCasejava.lang.Exceptionpublic static void closeCache()
public static void unsetSlowDispatcherFlag()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.