public class RebalanceOperationDUnitTest extends CacheTestCase
| Modifier and Type | Class and Description |
|---|---|
static class |
RebalanceOperationDUnitTest.ParallelRecoveryObserver |
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
RebalanceOperationDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
balanceBucketsByCount(boolean simulate)
Check to make sure that we balance
buckets between two hosts with no redundancy.
|
void |
enforceIp(boolean simulate) |
void |
enforceZone(boolean simulate)
Test that we correctly use the redundancy-zone
property to determine where to place redundant copies of a buckets.
|
void |
filterRegions(boolean simulate)
Check to make sure that we balance
buckets between two hosts with no redundancy.
|
void |
moveBucketsColocatedRegions(boolean simulate)
Test to make sure that we move buckets to balance between
three hosts with a redundancy of 1 and two colocated regions.
|
void |
moveBucketsNoRedundancy(boolean simulate)
Check to make sure that we balance
buckets between two hosts with no redundancy.
|
void |
moveBucketsWithRedundancy(boolean simulate)
Test to make sure we balance buckets between three hosts with redundancy
|
void |
moveBucketsWithUnrecoveredValuesRedundancy(boolean simulate)
Test to ensure that we wait for
in progress write operations before moving a primary.
|
void |
recoverRedundancy(boolean simulate) |
void |
recoverRedundancyBalancing(boolean simulate) |
void |
recoverRedundancyColocatedRegions(boolean simulate) |
void |
recoverRedundancyParallelAsyncEventQueue(boolean simulate) |
void |
recoverRedundancyWithOfflinePersistence(boolean simulate,
boolean useAccessor) |
void |
runTestWaitForOperation(com.gemstone.gemfire.internal.cache.control.RebalanceOperationDUnitTest.Operation op)
Test to ensure that we wait for
in progress write operations before moving a primary.
|
void |
tearDown2()
Tears down the test.
|
void |
testBalanceBucketsByCount() |
void |
testBalanceBucketsByCountSimulation() |
void |
testCancelOperation() |
void |
testEnforceIP() |
void |
testEnforceIPSimulation() |
void |
testEnforceZone() |
void |
testEnforceZoneSimulation() |
void |
testEnforceZoneWithMultipleRegions() |
void |
testFilterRegions() |
void |
testFilterRegionsSimulation() |
void |
testMembershipChange()
Test that the rebalancing operation picks up on
a concurrent membership change
|
void |
testMoveBucketsColocatedRegions() |
void |
testMoveBucketsColocatedRegionsSimulation() |
void |
testMoveBucketsNestedPR()
Test to make sure we balance buckets between three hosts with redundancy
|
void |
testMoveBucketsNoRedundancy() |
void |
testMoveBucketsNoRedundancySimulation() |
void |
testMoveBucketsOverflowToDisk()
A test that the stats when overflowing entries to disk
are correct and we still rebalance correctly
|
void |
testMoveBucketsWithRedundancy() |
void |
testMoveBucketsWithRedundancySimulation() |
void |
testMoveBucketsWithUnrecoveredValues() |
void |
testRecoverRedundancy() |
void |
testRecoverRedundancyBalancing() |
void |
testRecoverRedundancyBalancingSimulation() |
void |
testRecoverRedundancyColocatedRegions() |
void |
testRecoverRedundancyColocatedRegionsSimulation() |
void |
testRecoverRedundancyParallelAsyncEventQueue() |
void |
testRecoverRedundancyParallelAsyncEventQueueSimulation() |
void |
testRecoverRedundancySimulation() |
void |
testRecoverRedundancyWithOfflinePersistence() |
void |
testRecoverRedundancyWithOfflinePersistenceAccessor() |
void |
testRecoverRedundancyWithOfflinePersistenceAccessorSimulation() |
void |
testRecoverRedundancyWithOfflinePersistenceSimulation() |
void |
testWaitForCacheLoader()
Test to make sure that moving primaries waits for a put
|
void |
testWaitForDestroy()
Test to make sure that moving primaries waits for a put
|
void |
testWaitForInvalidate()
Test to make sure that moving primaries waits for a put
|
void |
testWaitForPut()
Test to make sure that moving primaries waits for a put
|
void |
z_testRedundancyLoop()
Manual test.
|
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, setUp, 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 RebalanceOperationDUnitTest(String name)
name - public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCaseExceptionpublic void testRecoverRedundancySimulation()
public void testRecoverRedundancy()
public void recoverRedundancy(boolean simulate)
public void z_testRedundancyLoop()
public void testEnforceIP()
public void testEnforceIPSimulation()
public void enforceIp(boolean simulate)
public void testEnforceZone()
public void testEnforceZoneSimulation()
public void enforceZone(boolean simulate)
simulate - public void testEnforceZoneWithMultipleRegions()
public void testRecoverRedundancyBalancingSimulation()
public void testRecoverRedundancyBalancing()
public void recoverRedundancyBalancing(boolean simulate)
public void testRecoverRedundancyColocatedRegionsSimulation()
public void testRecoverRedundancyColocatedRegions()
public void recoverRedundancyColocatedRegions(boolean simulate)
public void testRecoverRedundancyParallelAsyncEventQueueSimulation()
throws NoSuchFieldException,
SecurityException
public void testRecoverRedundancyParallelAsyncEventQueue()
public void recoverRedundancyParallelAsyncEventQueue(boolean simulate)
public void testCancelOperation()
public void testMembershipChange()
public void testMoveBucketsNoRedundancySimulation()
public void testMoveBucketsNoRedundancy()
public void moveBucketsNoRedundancy(boolean simulate)
simulate - public void testFilterRegionsSimulation()
public void testFilterRegions()
public void filterRegions(boolean simulate)
simulate - public void testMoveBucketsWithRedundancySimulation()
public void testMoveBucketsWithRedundancy()
public void moveBucketsWithRedundancy(boolean simulate)
public void testMoveBucketsOverflowToDisk()
throws Throwable
Throwablepublic void testMoveBucketsNestedPR()
public void testMoveBucketsColocatedRegionsSimulation()
public void testMoveBucketsColocatedRegions()
public void moveBucketsColocatedRegions(boolean simulate)
simulate - public void testWaitForPut()
throws Exception
Exceptionpublic void testWaitForInvalidate()
throws Exception
Exceptionpublic void testWaitForDestroy()
throws Exception
Exceptionpublic void testWaitForCacheLoader()
throws Exception
Exceptionpublic void runTestWaitForOperation(com.gemstone.gemfire.internal.cache.control.RebalanceOperationDUnitTest.Operation op)
throws CancellationException,
InterruptedException,
TimeoutException
public void testRecoverRedundancyWithOfflinePersistenceSimulation()
throws Throwable
Throwablepublic void testRecoverRedundancyWithOfflinePersistence()
throws Throwable
Throwablepublic void testRecoverRedundancyWithOfflinePersistenceAccessorSimulation()
throws Throwable
Throwablepublic void testRecoverRedundancyWithOfflinePersistenceAccessor()
throws Throwable
Throwablepublic void recoverRedundancyWithOfflinePersistence(boolean simulate,
boolean useAccessor)
throws Throwable
Throwablepublic void testMoveBucketsWithUnrecoveredValues()
public void testBalanceBucketsByCountSimulation()
public void testBalanceBucketsByCount()
public void balanceBucketsByCount(boolean simulate)
simulate - public void moveBucketsWithUnrecoveredValuesRedundancy(boolean simulate)
CancellationExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.