public class FixedPartitioningWithColocationAndPersistenceDUnitTest extends FixedPartitioningTestBase
FixedPartitioningTestBase.Months_Accessor, FixedPartitioningTestBase.Months_DataStore, FixedPartitioningTestBase.Q1_Months, FixedPartitioningTestBase.Q2_Months, FixedPartitioningTestBase.Q3_Months, FixedPartitioningTestBase.Q4_MonthsDistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2member1, member2, member3, member4, Quarter1, Quarter2, Quarter3, Quarter4, redundantCopies, region_FPRlogPerTest, reconnect, system, testName| Constructor and Description |
|---|
FixedPartitioningWithColocationAndPersistenceDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testColocation_FPR_Persistence_ChildUsingAttributesOfParent_HA() |
void |
testColocation_FPR_Persistence_ChildUsingAttributesOfParent() |
void |
testColocation_FPR_Persistence_Colocation_OneMemberAlive()
Tests validate the behavior of FPR with persistence and with colocation
when one member is kept alive and other members goes down and come up
|
void |
testColocation_FPR_Persistence_Colocation()
Tests validate the behavior of FPR with persistence and with colocation
when all members goes down and comes up.
|
void |
testColocation_FPRs_ChildUsingAttributesOfParent_HA()
This tests validates that Customer-Order-shipment colocation with failover
scenario,
|
void |
testColocation_FPRs_ChildUsingAttributesOfParent()
This tests validates that in Customer-Order-shipment colocation, Order and
shipment have the FixedPartitionAttributes of the parent region Customer.
|
void |
testColocation_WithFPROnChildRegion()
This tests validates that in colocation of FPRs child region cannot specify
FixedPartitionAttributes
|
void |
testFPR_Persistence_OneMemberAlive()
Tests validate the behavior of FPR with persistence when one member is kept
alive and other members goes down and come up
|
void |
testFPR_Persistence()
Tests validate the behavior of FPR with persistence when all members goes
down and comes up.
|
void |
testFPR_Persistence2() |
void |
testFPR_Persistence3() |
void |
testPartitionManagerWithFPR_BucketsAlreadyCreated()
Create bucket on FPR for which buckets are created and see if it gets
created
|
void |
testPartitionManagerWithFPR_NoBucketsCreatedYet()
Create bucket on an empty FPR and see if and check if it gets created or
exceptions are thrown.
|
void |
testPR_Persistence()
Test validate a normal PR's persistence behavior.
|
assertFALSE_Q1, assertFALSE_Q2, assertFALSE_Q3, assertFALSE_Q4, assertTRUE_Q1, assertTRUE_Q2, assertTRUE_Q3, assertTRUE_Q4, checkFPR, checkPrimaryBucketsForColocation, checkPrimaryBucketsForColocationAfterCacheClosed, checkPrimaryBucketsForCustomer, checkPrimaryBucketsForQuarter, checkPrimaryBucketsForQuarterAfterCacheClosed, checkPrimaryData, checkPrimaryDataPersistence, checkPrimarySecondaryData_TwoSecondaries, checkPrimarySecondaryData, checkStartingBucketIDs_Nodedown, checkStartingBucketIDs_Nodeup, checkStartingBucketIDs, cleanDiskDirs, closeCache, createCacheOnMember_DisableMovePrimary, createCacheOnMember, createOutOfRangePrimaryBucketUsingPartitionManager, createPrimaryBucketsBelongingToOtherPartition, createPrimaryBucketsBelongingToThisPartition, createRegionWithPartitionAttributes, deleteOperation, doRebalance, getDiskDirs, getForColocation, getForQuarter, getThroughDataStore, putCustomerPartitionedRegion_Persistence, putCustomerPartitionedRegion_Persistence1, putCustomerPartitionedRegion_Persistence2, putCustomerPartitionedRegion, putForQuarter, putHAData, putOperation, putOrderPartitionedRegion_Persistence, putOrderPartitionedRegion_Persistence1, putOrderPartitionedRegion_Persistence2, putOrderPartitionedRegion, putShipmentPartitionedRegion_Persistence, putShipmentPartitionedRegion_Persistence1, putShipmentPartitionedRegion_Persistence2, putShipmentPartitionedRegion, putThorughAccessor_Immediate, putThorughAccessor, putThroughDataStore_CallBackWithResolver, putThroughDataStore_FixedPartitionResolver_NoResolver, putThroughDataStore_FixedPartitionResolver_PartitionResolver, putThroughDataStore_NoResolver, putThroughDataStore, remoteTearDown, resetPRObserverBeforeCalculateStartingBucketId, setPRObserverBeforeCalculateStartingBucketId, validateAfterPutPartitionedRegionaddExpectedException, 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, toStringpublic FixedPartitioningWithColocationAndPersistenceDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class FixedPartitioningTestBaseExceptionpublic void testColocation_WithFPROnChildRegion()
public void testColocation_FPRs_ChildUsingAttributesOfParent()
CustomerFixedPartitionResolver.getRoutingObject(com.gemstone.gemfire.cache.EntryOperation)
Also the Fixed Partitioning is achieved using same partition-resolver
CustomerFixedPartitionResolver.getPartitionName(com.gemstone.gemfire.cache.EntryOperation, java.util.Set)
Validation are done for the same number of the buckets Validation are done
for the same buckets on particular member for all 3 regions.public void testColocation_FPR_Persistence_ChildUsingAttributesOfParent()
public void testColocation_FPRs_ChildUsingAttributesOfParent_HA()
public void testColocation_FPR_Persistence_ChildUsingAttributesOfParent_HA()
public void testPartitionManagerWithFPR_NoBucketsCreatedYet()
public void testPartitionManagerWithFPR_BucketsAlreadyCreated()
public void testFPR_Persistence_OneMemberAlive()
public void testFPR_Persistence()
public void testColocation_FPR_Persistence_Colocation_OneMemberAlive()
public void testColocation_FPR_Persistence_Colocation()
public void testFPR_Persistence2()
public void testFPR_Persistence3()
public void testPR_Persistence()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.