public class PRColocationDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Cache |
cache |
protected static int |
defaultStringSize |
protected static int |
totalNumBucketsInTest |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
PRColocationDUnitTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
Bug47502_testColocatedPRWithClose() |
static void |
closeRegion(java.lang.String partitionedRegionName) |
protected void |
createCacheInAllVms() |
static void |
createCacheInVm() |
protected void |
createPartitionedRegion(java.lang.Object[] attributes) |
static void |
createPR(java.lang.String partitionedRegionName,
java.lang.Integer redundancy,
java.lang.Integer localMaxMemory,
java.lang.Integer totalNumBuckets,
java.lang.Object colocatedWith,
java.lang.Boolean isPartitionResolver) |
static void |
createPR(java.lang.String partitionedRegionName,
java.lang.Integer redundancy,
java.lang.Integer localMaxMemory,
java.lang.Integer totalNumBuckets,
java.lang.Object colocatedWith,
java.lang.Boolean isPartitionResolver,
java.lang.Boolean concurrencyChecks) |
static void |
createSubPR(java.lang.String partitionedRegionName,
java.lang.Integer redundancy,
java.lang.Integer localMaxMemory,
java.lang.Integer totalNumBuckets,
java.lang.Object colocatedWith,
java.lang.Boolean isPartitionResolver) |
static void |
destroyPR(java.lang.String partitionedRegionName) |
static void |
executeFunction() |
static java.lang.String |
getDefaultAddOnString() |
static void |
putCustomerPartitionedRegion(java.lang.String partitionedRegionName) |
static void |
putData_KeyBasedPartitionResolver() |
static void |
putInPartitionedRegion(com.gemstone.gemfire.cache.Region pr) |
static void |
putOrderPartitionedRegion(java.lang.String partitionedRegionName) |
static void |
putOrderPartitionedRegion2(java.lang.String partitionedRegionName) |
static void |
putShipmentPartitionedRegion(java.lang.String partitionedRegionName) |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testColocatedPartitionedRegion_NoFullPath() |
void |
testColocatedPartitionedRegion() |
void |
testColocatedPRRedundancyRecovery()
Tests to make sure that a VM will not make copies of
any buckets for a region until all of the colocated regions are
created.
|
void |
testColocatedPRRedundancyRecovery2() |
void |
testColocatedPRWithAccessorOnDifferentNode1() |
void |
testColocatedPRWithAccessorOnDifferentNode2() |
void |
testColocatedPRWithDestroy() |
void |
testColocatedPRWithLocalDestroy() |
void |
testColocatedPRWithPROnDifferentNode1() |
void |
testColocatedSubPartitionedRegion_NoFullPath() |
void |
testColocatedSubPartitionedRegion() |
void |
testColocationPartitionedRegion() |
void |
testColocationPartitionedRegionWithKeyPartitionResolver() |
void |
testColocationPartitionedRegionWithNullColocationSpecifiedOnOneNode()
Test verifies following invalid collocation creation
Member 1: PR2 colocatedWith PR1 Member 2: PR2 is not colocated Should throw IllegalStateException |
void |
testColocationPartitionedRegionWithRedundancy() |
void |
testDestroyColocatedPartitionedRegion() |
void |
testPartitionResolverPartitionedRegion() |
void |
testRedundancyRestriction()
Confirm that the redundancy must be the same for colocated partitioned regions
|
void |
testSimulaneousChildRegionCreation()
Test of hang observed at nomura with the
PRHARedundancyProvider.createMissingBuckets code.
|
static void |
validateAfterPutPartitionedRegion(java.lang.String customerPartitionedRegionName,
java.lang.String orderPartitionedRegionName,
java.lang.String shipmentPartitionedRegionName) |
static void |
validateBeforePutCustomerPartitionedRegion(java.lang.String partitionedRegionName) |
static void |
validateColocatedRegions(java.lang.String partitionedRegionName) |
static java.lang.Integer |
validateDataStore(java.lang.String customerPartitionedRegionName,
java.lang.String orderPartitionedRegionName,
java.lang.String shipmentPartitionedRegionName) |
static void |
validateDataStoreForRedundancy(java.lang.String customerPartitionedRegionName,
java.lang.String orderPartitionedRegionName,
java.lang.String shipmentPartitionedRegionName) |
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 com.gemstone.gemfire.cache.Cache cache
protected static int totalNumBucketsInTest
protected static int defaultStringSize
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void testDestroyColocatedPartitionedRegion()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocatedPartitionedRegion()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocatedPartitionedRegion_NoFullPath()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocatedSubPartitionedRegion()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocatedSubPartitionedRegion_NoFullPath()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocatedPRWithAccessorOnDifferentNode1()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocatedPRWithAccessorOnDifferentNode2()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocatedPRWithPROnDifferentNode1()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocatedPRWithLocalDestroy()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocatedPRWithDestroy()
throws java.lang.Throwable
java.lang.Throwablepublic void Bug47502_testColocatedPRWithClose()
throws java.lang.Throwable
java.lang.Throwablepublic void testPartitionResolverPartitionedRegion()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocationPartitionedRegion()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocationPartitionedRegionWithNullColocationSpecifiedOnOneNode()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocationPartitionedRegionWithRedundancy()
throws java.lang.Throwable
java.lang.Throwablepublic void testRedundancyRestriction()
throws java.lang.Exception
java.lang.Exceptionpublic void testColocatedPRRedundancyRecovery()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocationPartitionedRegionWithKeyPartitionResolver()
throws java.lang.Throwable
java.lang.Throwablepublic void testColocatedPRRedundancyRecovery2()
throws java.lang.Throwable
java.lang.Throwablepublic void testSimulaneousChildRegionCreation()
throws java.lang.Throwable
java.lang.Throwablepublic static void putData_KeyBasedPartitionResolver()
public static void executeFunction()
public static void validateDataStoreForRedundancy(java.lang.String customerPartitionedRegionName,
java.lang.String orderPartitionedRegionName,
java.lang.String shipmentPartitionedRegionName)
public static java.lang.Integer validateDataStore(java.lang.String customerPartitionedRegionName,
java.lang.String orderPartitionedRegionName,
java.lang.String shipmentPartitionedRegionName)
public static void validateColocatedRegions(java.lang.String partitionedRegionName)
public static void validateBeforePutCustomerPartitionedRegion(java.lang.String partitionedRegionName)
public static void validateAfterPutPartitionedRegion(java.lang.String customerPartitionedRegionName,
java.lang.String orderPartitionedRegionName,
java.lang.String shipmentPartitionedRegionName)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionprotected void createCacheInAllVms()
public static void putInPartitionedRegion(com.gemstone.gemfire.cache.Region pr)
public static void closeRegion(java.lang.String partitionedRegionName)
public static void putCustomerPartitionedRegion(java.lang.String partitionedRegionName)
public static void putOrderPartitionedRegion(java.lang.String partitionedRegionName)
public static void putOrderPartitionedRegion2(java.lang.String partitionedRegionName)
public static void putShipmentPartitionedRegion(java.lang.String partitionedRegionName)
protected void createPartitionedRegion(java.lang.Object[] attributes)
public static void destroyPR(java.lang.String partitionedRegionName)
public static void createPR(java.lang.String partitionedRegionName,
java.lang.Integer redundancy,
java.lang.Integer localMaxMemory,
java.lang.Integer totalNumBuckets,
java.lang.Object colocatedWith,
java.lang.Boolean isPartitionResolver)
public static void createPR(java.lang.String partitionedRegionName,
java.lang.Integer redundancy,
java.lang.Integer localMaxMemory,
java.lang.Integer totalNumBuckets,
java.lang.Object colocatedWith,
java.lang.Boolean isPartitionResolver,
java.lang.Boolean concurrencyChecks)
public static void createSubPR(java.lang.String partitionedRegionName,
java.lang.Integer redundancy,
java.lang.Integer localMaxMemory,
java.lang.Integer totalNumBuckets,
java.lang.Object colocatedWith,
java.lang.Boolean isPartitionResolver)
public static void createCacheInVm()
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 java.lang.String getDefaultAddOnString()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.