public class KnownKeysTest extends InitImageTest
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DataStoreVmStr |
protected static boolean |
diskFilesRecorded |
protected com.gemstone.gemfire.distributed.DistributedLockService |
distLockService |
protected boolean |
highAvailability |
protected static boolean |
isBridgeConfiguration |
protected static boolean |
isClientCache |
protected static boolean |
isGatewayConfiguration |
protected static boolean |
isGatewaySenderConfiguration |
protected static String |
LOCK_NAME |
protected static String |
LOCK_SERVICE_NAME |
protected boolean |
lockOperations |
protected static Set |
missingKeys |
protected static Set |
missingValues |
protected static ParRegUtil |
parRegUtilInstance |
protected static boolean |
verifyRegionContentsCompleted |
protected static StringBuffer |
verifyRegionContentsErrStr |
protected static int |
verifyRegionContentsIndex |
protected static StringBuffer |
verifyRegionContentsSizeStr |
protected static boolean |
verifyRegionSizeCompleted |
protected static int |
verifyRegionSizeIndex |
ADD_NEW_KEY, aRegion, createRegionDurationMS, DESTROY, FIRST_OP, GET, giiDurationMS, INVALIDATE, keyIntervals, LAST_OP, LOCAL_DESTROY, LOCAL_INVALIDATE, LOG_INTERVAL_MILLIS, numNewKeys, operations, PUTALL_NEW_KEY, randomValues, REGION_NAME, sc, sleepMSAfterOps, supportsConcurrentMap, testInstance, totalNumKeys, UPDATE_EXISTING_KEY| Constructor and Description |
|---|
KnownKeysTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
doOps(BitSet availableOps)
Do operations on the REGION_NAME's keys using keyIntervals to specify
which keys get which operations.
|
protected List |
getDataStoreVms()
Return a list of the ClientVmInfo for all data store VMs.
|
static void |
HydraTask_accessorInitialize()
Initialize the single instance of this test class and an
accessor partitioned region.
|
static void |
HydraTask_createGatewaySenderIds()
Creates GatewaySender ids based on the
ConfigPrms.gatewaySenderConfig for new wan senders. |
static void |
HydraTask_dataStoreInitialize()
Initialize the single instance of this test class and a
dataStore partitioned region.
|
static void |
HydraTask_disconnect()
Disconnect from the ds, in preparation of calling offline disk validation
and compaction
|
static void |
HydraTask_doOps()
Hydra task to execution ops, then stop scheduling.
|
static void |
HydraTask_doPrTxOps()
Hydra task to execution PR TX ops, then stop scheduling.
|
static void |
HydraTask_HA_accessorInitialize() |
static void |
HydraTask_HA_dataStoreInitialize() |
static void |
HydraTask_initialize()
Initialize the single instance of this test class but not a region.
|
static void |
HydraTask_loadRegion()
Hydra task to initialize a region and load it according to hydra param settings.
|
static void |
HydraTask_logLocalSize()
Log the local size of the PR data store
|
static void |
HydraTask_startGatewayHub()
Using the Gateway endpoints stored on the hydra BB via
GatewayHubHelper.createGatewayHub, start the Gateway in the Servers.
|
static void |
HydraTask_startNewWanComponents()
Hydra task to start new WAN senders which are created earlier via
GatewaySenderHelper.createGatewaySenders.
|
static void |
HydraTask_stopStartVms()
Hydra task to stop/start numVmsToStop at a time.
|
static void |
HydraTask_validatePR() |
static void |
HydraTask_verifyBucketCopiesBatched()
Hydra task to verify bucket copies.
|
static void |
HydraTask_verifyHDFSRegionContents() |
static void |
HydraTask_verifyHDFSRegionSize()
Verify that test counters and region size are in agreement after
the load.
|
static void |
HydraTask_verifyPrimaries()
Hydra task to verify primaries
|
static void |
HydraTask_verifyPRMetaData()
Hydra task to verify metadata
|
static void |
HydraTask_verifyRegionContents()
Hydra task to verify the contents of the region after all ops.
|
static void |
HydraTask_verifyRegionSize()
Hydra task to verify the size of the region after the load.
|
static void |
HydraTask_verifyUniqueHosts()
Hydra task to verify buckets on on unique hosts
|
static void |
HydraTask_waitForMyStartupRecovery()
Waits for this vm to complete redundancy recovery.
|
static void |
HydraTask_waitForSilence()
Hydra task to wait for a period of silence (30 seconds) to allow
the server queues to drain to the clients.
|
static void |
HydraTask_waitForStartupRecovery()
If this vm has a startup delay, wait for it.
|
static void |
HydraTask_writeDiskDirsToBB()
Hydra task to write the existing diskDirs to the blackboard, if any are set.
|
void |
initInstance(String regDescriptName)
Initialize this test instance
|
protected void |
recordFailedOps(String sharedMapKey)
Use TxHelper.getClientTXOperations() to get the List of TransactionalOperations which failed due to
TransactionDataNodeHasDeparted and TransactionDataRebalancedExceptions (HA tests).
|
static void |
StartTask_initialize()
Initialize the known keys for this test
|
protected void |
stopStartVms()
Stop and start ParRegPrms.numVMsToStop.
|
void |
verifyHDFSRegionContents()
HDFS regions are recovered lazily from disk ...
|
protected void |
verifyHDFSRegionSize() |
void |
verifyRegionContents()
Verify the contents of the region, taking into account the keys
that were destroyed, invalidated, etc (as specified in keyIntervals)
Throw an error of any problems are detected.
|
protected void |
verifyRegionSize()
Verify that test counters and region size are in agreement after
the load.
|
addNewKey, blockedGetRegion, checkContainsKey, checkContainsValueForKey, checkUpdatedValue, checkValue, createObject, createObject, destroy, doGetInitImage, doNewKeyGets, doOpsPlusPuts, get, getCacheLoader, getCacheWriter, getOp, getRegionKeySet, getValueToAdd, hasLocalGiiCompleted, HydraTask_blockedGetRegion, HydraTask_doCacheWriterTest, HydraTask_doGetInitImage, HydraTask_doGetInitImageWithoutMonitor, HydraTask_doNewKeyGets, HydraTask_doPutAllNewKey, HydraTask_initCache, HydraTask_loadRegionWithGets, HydraTask_verifyCacheWriterTest, HydraTask_verifyEventCounters, HydraTask_verifyGII, HydraTask_verifyNonBlocking, initializeInstance, initializeRegion, initInstance, initRegion, invalidate, isAnyGiiInProgress, isLocalGiiInProgress, isLocalGiiInProgress, loadRegion, loadRegionWithGets, localDestroy, localInvalidate, putAllNewKey, updateExistingKey, verifyCacheWriterTest, verifyEventCounters, verifyNonBlocking, waitForAllGiiToComplete, waitForAnyGiiToBegin, waitForLocalGiiCompleted, waitForLocalGiiToBeginprotected static String DataStoreVmStr
protected static boolean isBridgeConfiguration
protected static boolean isGatewayConfiguration
protected static boolean isClientCache
protected static boolean isGatewaySenderConfiguration
protected static Set missingKeys
protected static Set missingValues
protected static int verifyRegionSizeIndex
protected static boolean verifyRegionSizeCompleted
protected static int verifyRegionContentsIndex
protected static StringBuffer verifyRegionContentsErrStr
protected static StringBuffer verifyRegionContentsSizeStr
protected static boolean verifyRegionContentsCompleted
protected static ParRegUtil parRegUtilInstance
protected boolean lockOperations
protected com.gemstone.gemfire.distributed.DistributedLockService distLockService
protected static String LOCK_SERVICE_NAME
protected static String LOCK_NAME
protected boolean highAvailability
protected static boolean diskFilesRecorded
public static void StartTask_initialize()
public static void HydraTask_initialize()
public void initInstance(String regDescriptName)
public static void HydraTask_accessorInitialize()
public static void HydraTask_HA_accessorInitialize()
public static void HydraTask_dataStoreInitialize()
public static void HydraTask_startGatewayHub()
public static void HydraTask_createGatewaySenderIds()
ConfigPrms.gatewaySenderConfig for new wan senders.
This has to be created before creating regions.public static void HydraTask_startNewWanComponents()
public static void HydraTask_writeDiskDirsToBB()
public static void HydraTask_HA_dataStoreInitialize()
public static void HydraTask_waitForStartupRecovery()
public static void HydraTask_waitForMyStartupRecovery()
public static void HydraTask_validatePR()
public static void HydraTask_disconnect()
public static void HydraTask_logLocalSize()
public static void HydraTask_loadRegion()
public static void HydraTask_doOps()
public static void HydraTask_doPrTxOps()
public static void HydraTask_waitForSilence()
public static void HydraTask_verifyPRMetaData()
public static void HydraTask_verifyUniqueHosts()
public static void HydraTask_verifyPrimaries()
public static void HydraTask_verifyBucketCopiesBatched()
public static void HydraTask_stopStartVms()
public static void HydraTask_verifyRegionContents()
public static void HydraTask_verifyHDFSRegionContents()
public static void HydraTask_verifyRegionSize()
protected void verifyRegionSize()
public void verifyRegionContents()
verifyRegionContents in class InitImageTestpublic static void HydraTask_verifyHDFSRegionSize()
protected void verifyHDFSRegionSize()
public void verifyHDFSRegionContents()
protected void stopStartVms()
protected List getDataStoreVms()
public void doOps(BitSet availableOps)
doOps in class InitImageTestavailableOps - - Bits which are true correspond to the operations
that should be executed.protected void recordFailedOps(String sharedMapKey)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.