public class ParRegTest extends Object
| Constructor and Description |
|---|
ParRegTest() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
addEntry(com.gemstone.gemfire.cache.Region r)
Add a new entry to the given region.
|
void |
checkForLastIteration() |
static void |
checkForLastIteration(int numSeconds)
Check if we have run for the desired length of time.
|
protected void |
clearBBCriticalState(List<ClientVmInfo> targetVMs)
Clear the critical state for the provided members
|
protected void |
concVerify() |
protected BaseValueHolder |
createObject(Object key) |
protected void |
cycleVms()
Choose numVMsToStop vms, then stop and restart them.
|
protected void |
cycleVMsNoWait()
Stop and start some number of VMs; do not wait for redundancy recovery.
|
protected static void |
deleteDir(File aDir)
Recursively delete a directory and its contents
|
protected static void |
deleteExistingDiskDirs()
Delete existing disk directories if they contain disk files.
|
protected void |
destroyEntry(com.gemstone.gemfire.cache.Region r,
boolean isLocalDestroy)
Destroy an entry in the given region.
|
protected void |
destroyPercent(com.gemstone.gemfire.cache.Region r,
boolean isLocalDestroy,
int percentToDestroy)
Destroy a percentage of entries in the given region.
|
protected void |
doConcOps()
Do random operations for concurrent tests until the upperThreshold is met.
|
protected void |
doConcOpsAndVerify()
Do random operations and verification for concurrent tests.
|
protected void |
doEntryOperations(com.gemstone.gemfire.cache.Region r)
Do random entry operations on the given region ending either with
minTaskGranularityMS or numOpsPerTask.
|
protected void |
doIntervalOps()
Do operations on the region.
|
void |
doRROpsAndVerify()
Do random operations and verification for serial round robin test.
|
protected void |
doShutDownAllMembers()
Choose numVMsToStop vms, then stop and restart them.
|
static String |
getCachePrmsName()
Get the appropriate hydra cache param name.
|
protected static String |
getClientRegionConfigName()
Get the hydra region config name to use to create a region.
|
protected static boolean |
getIsDataStore() |
protected void |
getKey(com.gemstone.gemfire.cache.Region aRegion)
Get an existing key in the given region if one is available,
otherwise get a new key.
|
protected Object |
getNewKey()
Return a new key, never before used in the test.
|
protected void |
getNewKey(com.gemstone.gemfire.cache.Region r)
Get a new key int the given region.
|
int |
getOffHeapVerifyTargetCount()
Return the number of threads across the entire test that call off-heap memory validation.
|
protected int[] |
getOperation(Long whichPrm)
Get a random operation using the given hydra parameter.
|
protected int[] |
getOperation(com.gemstone.gemfire.cache.Region reg)
Get an operation to perform on the region
|
protected Object |
getRecentKey(com.gemstone.gemfire.cache.Region r,
int recentHistory)
Return a random recently used key.
|
protected static String |
getRegionConfigName()
Get the hydra region config name to use to create a region.
|
protected Object |
getUpdateObject(com.gemstone.gemfire.cache.Region r,
String key)
Return an object to be used to update the given key.
|
protected Object |
getValueForBB(Object anObj) |
BaseValueHolder |
getValueForKey(Object key)
Return a value for the given key
|
String |
HA_reinitializeClientRegion()
Re-Initialize a VM which has restarted by creating the appropriate region.
|
String |
HA_reinitializeRegion() |
String |
HA_reinitializeRegion(String cachePrmsName)
Re-Initialize a VM which has restarted by creating the appropriate region.
|
protected void |
HAController()
Cycle through all VMs, killing one or more at a time, then bring them back.
|
protected void |
HADoEntryOps()
Do entry ops and handle disconnects or cache closes.
|
protected void |
handleException(Exception anExcept)
Handle an exception thrown by doing general operations during HA.
|
static void |
HydraTask_assignBucketsToPartitions() |
static void |
HydraTask_disconnect()
Disconnect from the ds, in preparation of calling offline disk validation
and compaction
|
static void |
HydraTask_doConcOps()
Hydra task method for concurrent tests with no verification.
|
static void |
HydraTask_doConcOpsAndVerify()
Hydra task method for concurrent tests with verification.
|
static void |
HydraTask_doEntryOps()
Hydra task method to do random entry operations.
|
static void |
HydraTask_doEntryOpsDataLoss()
Hydra task method to do random entry operations with expected
data loss.
|
static void |
HydraTask_doIntervalOps()
Do operations on the region.
|
static void |
HydraTask_doRROpsAndVerify()
Hydra task method for serial round robin tests.
|
static void |
HydraTask_HA_initializeAccessor()
Creates and initializes the singleton instance of ParRegTest in this VM
for HA testing with a PR accessor.
|
static void |
HydraTask_HA_initializeDataStore()
Creates and initializes the singleton instance of ParRegTest in this VM
for HA testing with a PR data store.
|
static void |
HydraTask_HA_reinitializeAccessor()
Creates and initializes the singleton instance of ParRegTest in this VM
for HA testing.
|
static void |
HydraTask_HA_reinitializeDataStore()
Creates and initializes the singleton instance of ParRegTest in this VM
for HA testing.
|
static void |
HydraTask_HA_reinitializeWithClientCache()
Creates and initializes the singleton instance of ParRegTest in this VM
for HA testing.
|
static void |
HydraTask_HAController()
Hydra task method to control VMs going down/up one at a time.
|
static void |
HydraTask_HADoEntryOps()
Hydra task method to do random entry operations.
|
static void |
HydraTask_initialize()
Creates and initializes the singleton instance of ParRegTest in this VM.
|
static void |
HydraTask_initializeBridgeServer()
Creates and initializes a data store PR in a bridge server.
|
static void |
HydraTask_initializeBridgeServerAccessor()
Creates and initializes an accessor PR in a bridge server.
|
static void |
HydraTask_initializeWithClientCache()
Creates and initializes the singleton instance of ParRegTest in this VM.
|
static void |
HydraTask_initializeWithRegDef()
Creates and initializes the singleton instance of ParRegTest in this VM.
|
static void |
HydraTask_loadToUpperThreshold()
Do random operations until the PR contains roughly upperThreshold
entries.
|
static void |
HydraTask_logLocalSize()
Log the local size of the PR data store
|
static void |
HydraTask_prepareForRecovery()
Initialize blackboard counters in preparation of disk recovery in all vms
in end task.
|
static void |
HydraTask_prepareForValidation()
Hydra task to write the current state of the PR to the blackboard
|
static void |
HydraTask_recoveryController()
Hydra task method to control all VMs going down/up.
|
static void |
HydraTask_recoveryEntryOps()
Hydra task method to coordinate with recovery controller.
|
static void |
HydraTask_restoreBackups()
Hydra task to restore each backup that occurred during the run.
|
static void |
HydraTask_shutDownAllHAController()
Hydra task method to control VMs going down with shutDownAllMembers
|
static void |
HydraTask_shutDownAllHADoEntryOps()
Hydra task method to do random entry operations undering shutDownAllMembers.
|
static void |
HydraTask_startVmAndRebalance()
Task to add a new vm and rebalance.
|
static void |
HydraTask_stopStartVMs()
Randomly stop and restart vms.
|
static void |
HydraTask_validateInternalPRState()
Hydra task to verify the contents of the region against the blackboard snapshot.
|
static void |
HydraTask_validateIntervalOps()
Validate operations done by HydraTask_doIntervalOps
|
static void |
HydraTask_validatePR()
Hydra task to validate the PR
|
static void |
HydraTask_validateRegionContents()
Hydra task to verify the contents of the region against the blackboard snapshot.
|
static void |
HydraTask_verifyFromSnapshotAndSync()
Verify all regions from the snapshot and wait for all threads to complete verify
|
static void |
HydraTask_verifyRecoveredVMsFromSnapshotAndSync()
Verify all regions from the snapshot and wait for recovery threads (meaning
those threads not in the controller vm) to complete verify
|
static void |
HydraTask_waitForMyStartupRecovery()
Waits for this vm to complete redundancy recovery.
|
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.
|
protected void |
initForIntervalValidation()
Initialize interval validation counters
This must be called prior to interval validation
|
void |
initializeClientRegion(String cacheConfig,
String regionConfig)
Create a client region with the given region description name.
|
void |
initializeInstance()
Initialize this test instance
|
void |
initializeRegion(String regDescriptName)
Create a region with the given region description name.
|
void |
initializeRegion(String regDescriptName,
String cachePrmsName)
Create a region with the given region description name.
|
void |
initializeWithRegDef()
Create a region with the given regionDefinition spec name.
|
protected void |
initPdxDiskStore()
Create the pdx disk store if one was specified.
|
protected void |
invalidateEntry(com.gemstone.gemfire.cache.Region r,
boolean isLocalInvalidate)
Invalidate an entry in the given region.
|
protected static void |
logExecutionNumber()
Log the execution number of this serial task.
|
protected void |
loseAndRecreatePR(ClassLoader originalClassLoader,
ClassLoader newClassLoader)
Lose the partitioned region by doing each of the following in no
particular order:
1) close the cache
2) disconnect from the distributed system
3) locally destroy the PR
(this is skipped if a bridge server; see bug 36812)
4) close the PR
(this is skipped if a bridge server; see bug 36812)
Then recreate the PR after each, verifying the PR state.
|
protected void |
putAll(com.gemstone.gemfire.cache.Region r)
putall a map to the given region.
|
protected void |
putIfAbsent(com.gemstone.gemfire.cache.Region aReg,
boolean allowInvalidate)
Do a putIfAbsent.
|
protected void |
putIfAbsentAsCreate(com.gemstone.gemfire.cache.Region aReg)
Do a putIfAbsent as a create (key is NOT present).
|
protected void |
putIfAbsentAsGet(com.gemstone.gemfire.cache.Region aReg)
Do a putIfAbsent as a get (key is present).
|
protected void |
recordFailedOps(String sharedMapKey)
Use TxHelper.getClientTXOperations() maintain a list of keys for transactions that failed with
TransactionInDoubtExceptions
|
protected void |
recoveryController()
Concurrent ops are running in this and other vms while we stop vms.
|
protected void |
recoveryEntryOps()
Do entry ops and handle disconnects or cache closes.
|
protected void |
registerInterest()
Register interest with ALL_KEYS, and InterestPolicyResult = KEYS_VALUES
which is equivalent to a full GII.
|
protected void |
remove(com.gemstone.gemfire.cache.Region aReg)
Do a remove.
|
protected static void |
removeAccessors(List<ClientVmInfo> aList)
Using hydra region config names saved in the blackboard, remove
accessors in aList.
|
protected void |
removeAsNoop(com.gemstone.gemfire.cache.Region aReg)
Do a remove that functions as a noop either because the key is not
present or because the key is present but the existing value does not
equal the given value.
|
protected void |
replace(com.gemstone.gemfire.cache.Region aReg,
boolean allowInvalidate)
Do a replace(K,V).
|
protected void |
replaceAsNoop(com.gemstone.gemfire.cache.Region aReg)
Do a replace(K,V) that functions as a noop because the key is not present.
|
protected void |
replaceAsUpdate(com.gemstone.gemfire.cache.Region aReg)
Do a replace(K,V) that functions as a put (update) because the key is present.
|
protected void |
replaceOld(com.gemstone.gemfire.cache.Region aReg,
boolean allowInvalidate)
Do a replace(K,V,V).
|
protected void |
replaceOldAsNoop(com.gemstone.gemfire.cache.Region aReg)
Do a replace(K,V,V) that functions as a noop either because the key is not
present or because the key is present but the old value does not
equal the given value.
|
protected void |
replaceOldAsUpdate(com.gemstone.gemfire.cache.Region aReg)
Do a replace(K,V,V) that functions as a put because the key is present and the
oldValue is equal to what is currently in the region.
|
protected void |
restoreRegionSnapshot()
restoreRegionSnapshot() - restore this VMs internal RegionSnapshot (HashMap) after a tx failure during commit.
|
protected static void |
runRestoreScript(File backupDir,
boolean expectSuccess)
Find restore scripts for any online backups that were done during
the run and execute the scripts.
|
protected void |
saveRegionSnapshot()
saveRegionSnapshot() - save this VMs internal RegionSnapshot (HashMap) in case of tx failure during commit.
|
protected static void |
setUniqueKeyIndex()
Set the uniqueKey index for this thread
|
protected void |
shutDownAllHAController()
Test controller for tests that do shutDownAllMembers
|
protected void |
shutDownAllHADoEntryOps()
Do entry ops and handle vms undergoing a shutDownAllMembers.
|
protected void |
updateEntry(com.gemstone.gemfire.cache.Region r)
Update an existing entry in the given region.
|
protected void |
validateAfterRestore(long backupNum)
After a restore from a backup, validate the PR.
|
protected void |
validateIntervalOps()
Validate the operations from doIntervalOps.
|
void |
verifyFromSnapshot()
Verify the region contents against the blackboard AND verify the
internal state of the PR.
|
void |
verifyFromSnapshotOnly()
Verify the region contents against the blackboard; do not verify the
internal state of the PR.
|
void |
verifyHDFSRegionFromSnapshot()
HDFS version (cannot use region.size, containsKey, containsValueForKey)
limited validation (no checks for missing/extra entries)
|
void |
verifyInternalPRState()
Verify the internal state of the PR including PR metaData, primaries
and redundantCopy consistency.
|
void |
verifyServerKeysFromSnapshot()
Verify server keys in this client which might be empty or thin.
|
void |
verifyThinClientFromSnapshot()
Verify this thin client (meaning it has eviction to keep it small, so
not all entries are in this client.
|
protected void |
waitForRecoveryAfterCycleVMs()
Waits for redundancy recovery after calling cycleVMsNoWait
|
protected void |
waitForSelfRecovery()
Waits for recovery in self vm after reconnect
|
protected void |
writeHDFSRegionSnapshotToBB()
With all invalidates and destroys removed from test we will have PositiveNameCounter
entries in the cache.
|
public static ParRegTest testInstance
protected static final int ENTRY_ADD_OPERATION
protected static final int ENTRY_DESTROY_OPERATION
protected static final int ENTRY_INVALIDATE_OPERATION
protected static final int ENTRY_LOCAL_DESTROY_OPERATION
protected static final int ENTRY_LOCAL_INVALIDATE_OPERATION
protected static final int ENTRY_UPDATE_OPERATION
protected static final int ENTRY_GET_OPERATION
protected static final int ENTRY_GET_NEW_OPERATION
protected static final int ENTRY_PUTALL_OPERATION
protected static final int ENTRY_DESTROY_PERCENT_OPERATION
protected static final int ENTRY_LOCAL_DESTROY_PERCENT_OPERATION
protected static final int ENTRY_PUT_IF_ABSENT_OPERATION
protected static final int ENTRY_PUT_IF_ABSENT_AS_GET_OPERATION
protected static final int ENTRY_PUT_IF_ABSENT_AS_CREATE_OPERATION
protected static final int ENTRY_REMOVE_OPERATION
protected static final int ENTRY_REMOVE_AS_NOOP_OPERATION
protected static final int ENTRY_REPLACE_OPERATION
protected static final int ENTRY_REPLACE_AS_UPDATE_OPERATION
protected static final int ENTRY_REPLACE_AS_NOOP_OPERATION
protected static final int ENTRY_REPLACE_NO_INVAL_OPERATION
protected static final int ENTRY_REPLACE_OLD_OPERATION
protected static final int ENTRY_REPLACE_OLD_AS_UPDATE_OPERATION
protected static final int ENTRY_REPLACE_OLD_AS_NOOP_OPERATION
protected static final int ENTRY_REPLACE_OLD_NO_INVAL_OPERATION
protected static final int QUERY_OPERATION
protected static final int CREATE_INDEX_OPERATION
protected static final int REMOVE_INDEX_OPERATION
protected long minTaskGranularitySec
protected long minTaskGranularityMS
protected int numOpsPerTask
public boolean isSerialExecution
protected int numThreadsInClients
protected RandomValues randomValues
public com.gemstone.gemfire.cache.Region aRegion
protected int upperThreshold
protected int lowerThreshold
protected int numVMsToStop
protected RegionDefinition regDef
protected CacheDefinition cacheDef
public boolean highAvailability
protected boolean lockOperations
protected boolean regionLocallyDestroyed
protected boolean cacheIsClosed
protected boolean disconnected
protected int secondsToRun
protected int numThreadsInThisVM
public boolean hasPRCacheLoader
public int redundantCopies
protected int currentValidateKeyIndex
protected int currentIntervalKeyIndex
protected boolean isEmptyClient
protected boolean isThinClient
protected Map regionSnapshot
protected Set destroyedKeys
protected Map txRegionSnapshot
protected Set txDestroyedKeys
protected com.gemstone.gemfire.distributed.DistributedLockService distLockService
public boolean isBridgeConfiguration
public boolean isBridgeClient
public boolean uniqueHostsOn
public int exceptionCount
public boolean thisVmRunningHAController
protected boolean hasLRUEntryEviction
protected int LRUEntryMax
protected List<ClientVmInfo> cycleVMs_targetVMs
protected List<ClientVmInfo> cycleVMs_notChosenVMs
protected String bridgeOrderingWorkaround
public HydraThreadLocal uniqueKeyIndex
protected boolean uniqueKeys
public boolean isDataStore
public boolean isClientCache
protected static String LOCK_SERVICE_NAME
protected static String LOCK_NAME
protected static final String getCallbackPrefix
protected static final String createCallbackPrefix
protected static final String updateCallbackPrefix
protected static final String invalidateCallbackPrefix
protected static final String destroyCallbackPrefix
protected static final String regionInvalidateCallbackPrefix
protected static final String regionDestroyCallbackPrefix
protected static final int RECENT_HISTORY
protected static final String VmIDStr
protected static final String isDataStoreKey
protected static final String shutDownAllInProgressKey
protected static final String expectOfflineExceptionKey
protected static volatile MethodCoordinator concVerifyCoordinator
protected static volatile MethodCoordinator registerInterestCoordinator
protected static final int CLOSE_CACHE
protected static final int DISCONNECT
protected static final int LOCAL_DESTROY
protected static final int CLOSE_REGION
protected static final int MAX_CHOICES
protected static final int MAX_CHOICES_FOR_CLIENT_SERVER
protected static boolean diskFilesRecorded
public int offHeapVerifyTargetCount
public static void HydraTask_initialize()
public static void HydraTask_initializeWithClientCache()
public static void HydraTask_initializeWithRegDef()
public static void HydraTask_initializeBridgeServer()
public static void HydraTask_initializeBridgeServerAccessor()
public static void HydraTask_HA_initializeAccessor()
public static void HydraTask_HA_initializeDataStore()
public static void HydraTask_HA_reinitializeWithClientCache()
public static void HydraTask_HA_reinitializeAccessor()
protected static void setUniqueKeyIndex()
public static void HydraTask_HA_reinitializeDataStore()
public void initializeRegion(String regDescriptName)
regDescriptName - The name of a region description.public void initializeRegion(String regDescriptName, String cachePrmsName)
regDescriptName - The name of a region description.public void initializeClientRegion(String cacheConfig, String regionConfig)
regionConfig - The name of a client region description.public void initializeWithRegDef()
specName - The name of a RegionDefinition spec.public void initializeInstance()
public String HA_reinitializeClientRegion()
public String HA_reinitializeRegion()
public String HA_reinitializeRegion(String cachePrmsName)
protected static String getClientRegionConfigName()
protected static String getRegionConfigName()
public static void HydraTask_disconnect()
public static void HydraTask_prepareForRecovery()
public static String getCachePrmsName()
public static void HydraTask_doRROpsAndVerify()
public static void HydraTask_doConcOps()
public static void HydraTask_loadToUpperThreshold()
public static void HydraTask_doIntervalOps()
public static void HydraTask_validateIntervalOps()
public static void HydraTask_doConcOpsAndVerify()
public static void HydraTask_doEntryOpsDataLoss()
public static void HydraTask_doEntryOps()
public static void HydraTask_HADoEntryOps()
public static void HydraTask_shutDownAllHADoEntryOps()
public static void HydraTask_HAController()
public static void HydraTask_shutDownAllHAController()
public static void HydraTask_recoveryController()
public static void HydraTask_recoveryEntryOps()
public static void HydraTask_stopStartVMs()
public static void HydraTask_logLocalSize()
public static void HydraTask_waitForStartupRecovery()
public static void HydraTask_waitForMyStartupRecovery()
public static void HydraTask_writeDiskDirsToBB()
public static void HydraTask_validateRegionContents()
public static void HydraTask_validateInternalPRState()
public static void HydraTask_validatePR()
public static void HydraTask_prepareForValidation()
public static void HydraTask_verifyFromSnapshotAndSync()
public static void HydraTask_verifyRecoveredVMsFromSnapshotAndSync()
public static void HydraTask_startVmAndRebalance()
public static void HydraTask_assignBucketsToPartitions()
public static void HydraTask_restoreBackups()
protected void validateAfterRestore(long backupNum)
backupNum - The backup number we restored from (backups are created
in directories called backup_protected static void deleteExistingDiskDirs()
protected static void deleteDir(File aDir)
aDir - The directory to delete.protected static void runRestoreScript(File backupDir, boolean expectSuccess)
backupDir - The directory containing a backup.expectSuccess - If true then the restore scripts should work
successfully, if false then they should fail because there
are already disk files present.public void doRROpsAndVerify()
protected void loseAndRecreatePR(ClassLoader originalClassLoader, ClassLoader newClassLoader)
protected void doConcOps()
protected void doConcOpsAndVerify()
public int getOffHeapVerifyTargetCount()
protected void HAController()
protected void HADoEntryOps()
protected void shutDownAllHAController()
protected void shutDownAllHADoEntryOps()
protected void handleException(Exception anExcept)
protected void recoveryController()
protected void recoveryEntryOps()
protected void doEntryOperations(com.gemstone.gemfire.cache.Region r)
protected void recordFailedOps(String sharedMapKey)
protected void saveRegionSnapshot()
protected void restoreRegionSnapshot()
protected Object addEntry(com.gemstone.gemfire.cache.Region r)
aRegion - The region to use for adding a new entry.protected void putAll(com.gemstone.gemfire.cache.Region r)
aRegion - The region to use for putall a map.protected void invalidateEntry(com.gemstone.gemfire.cache.Region r,
boolean isLocalInvalidate)
aRegion - The region to use for invalidating an entry.isLocalInvalidate - True if the invalidate should be local, false otherwise.protected void destroyEntry(com.gemstone.gemfire.cache.Region r,
boolean isLocalDestroy)
aRegion - The region to use for destroying an entry.isLocalDestroy - True if the destroy should be local, false otherwise.protected void destroyPercent(com.gemstone.gemfire.cache.Region r,
boolean isLocalDestroy,
int percentToDestroy)
aRegion - The region to use for destroying an entry.isLocalDestroy - True if the destroy should be local, false otherwise.percentToDestroy - True if the destroy should be local, false otherwise.protected void updateEntry(com.gemstone.gemfire.cache.Region r)
aRegion - The region to use for updating an entry.protected Object getValueForBB(Object anObj) throws TestException
anObj - TestExceptionprotected void getKey(com.gemstone.gemfire.cache.Region aRegion)
aRegion - The region to use for getting an entry.protected void getNewKey(com.gemstone.gemfire.cache.Region r)
aRegion - The region to use for getting an entry.protected void putIfAbsent(com.gemstone.gemfire.cache.Region aReg,
boolean allowInvalidate)
aReg - The region to call putIfAbsent on.
allowInvalidate True if this call is allowed to randomly
choose to make this operation function as an invalidate,
false otherwise.protected void putIfAbsentAsGet(com.gemstone.gemfire.cache.Region aReg)
aReg - The region to call putIfAbsent on.protected void putIfAbsentAsCreate(com.gemstone.gemfire.cache.Region aReg)
aReg - The region to call putIfAbsent on.protected void remove(com.gemstone.gemfire.cache.Region aReg)
aReg - The region to call remove on.protected void removeAsNoop(com.gemstone.gemfire.cache.Region aReg)
aReg - The region to call remove on.protected void replace(com.gemstone.gemfire.cache.Region aReg,
boolean allowInvalidate)
aReg - The region to call putIfAbsent on.
allowInvalidate True if this call is allowed to randomly
choose to make this operation function as an invalidate,
false otherwise.protected void replaceAsNoop(com.gemstone.gemfire.cache.Region aReg)
aReg - The region to call replace on.protected void replaceAsUpdate(com.gemstone.gemfire.cache.Region aReg)
aReg - The region to call replace on.protected void replaceOld(com.gemstone.gemfire.cache.Region aReg,
boolean allowInvalidate)
aReg - The region to call replace on.
allowInvalidate True if this call is allowed to randomly
choose to make this operation function as an invalidate,
false otherwise.protected void replaceOldAsNoop(com.gemstone.gemfire.cache.Region aReg)
aReg - The region to call replace on.protected void replaceOldAsUpdate(com.gemstone.gemfire.cache.Region aReg)
aReg - The region to call replace on.public void checkForLastIteration()
public static void checkForLastIteration(int numSeconds)
protected void cycleVms()
protected void cycleVMsNoWait()
protected void waitForRecoveryAfterCycleVMs()
protected void waitForSelfRecovery()
protected static void removeAccessors(List<ClientVmInfo> aList)
protected void doShutDownAllMembers()
protected void clearBBCriticalState(List<ClientVmInfo> targetVMs)
targetVMs - public BaseValueHolder getValueForKey(Object key)
protected BaseValueHolder createObject(Object key)
protected Object getNewKey()
protected Object getRecentKey(com.gemstone.gemfire.cache.Region r, int recentHistory)
aRegion - The region to use for getting a recently used key.recentHistory - The number of most recently used keys to consider
for returning.protected Object getUpdateObject(com.gemstone.gemfire.cache.Region r, String key)
aRegion - The region which possible contains key.key - The key to get a new value for.protected static void logExecutionNumber()
protected int[] getOperation(com.gemstone.gemfire.cache.Region reg)
reg - The region to get an operation for.protected int[] getOperation(Long whichPrm)
whichPrm - A hydra parameter which specifies random operations.protected void registerInterest()
protected void doIntervalOps()
protected void initForIntervalValidation()
protected void validateIntervalOps()
public void verifyFromSnapshot()
public void verifyFromSnapshotOnly()
public void verifyHDFSRegionFromSnapshot()
public void verifyServerKeysFromSnapshot()
public void verifyInternalPRState()
public void verifyThinClientFromSnapshot()
protected void concVerify()
protected void writeHDFSRegionSnapshotToBB()
protected static boolean getIsDataStore()
protected void initPdxDiskStore()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.