public class RegionWithHDFSBasicDUnitTest extends RegionWithHDFSTestBase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2tmpDircachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
RegionWithHDFSBasicDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkWithGet(String uniqueName,
int start,
int end,
boolean expectValue) |
protected void |
checkWithGetAll(String uniqueName,
ArrayList arrayl) |
void |
DISABLED_testLocalDestroy()
Test that we can locally destroy a member, without
causing problems with the data in HDFS
|
protected AsyncInvocation |
doAsyncPuts(VM vm,
String regionName,
int start,
int end,
String suffix) |
protected AsyncInvocation |
doAsyncPuts(VM vm,
String regionName,
int start,
int end,
String suffix,
String value) |
protected void |
doDestroys(String uniqueName,
int start,
int end) |
protected void |
doPutAll(String uniqueName,
Map map) |
protected void |
doPuts(String uniqueName,
int start,
int end) |
void |
doTestClearRegion(int batchInterval,
boolean waitForWriteToHDFS) |
protected SerializableCallable |
getCreateRegionCallable(int totalnumOfBuckets,
int batchSizeMB,
int maximumEntries,
String folderPath,
String uniqueName,
int batchInterval,
boolean queuePersistent,
boolean writeonly,
long timeForRollover,
long maxFileSize) |
protected void |
setGfxdSystem(boolean isGfxd) |
void |
testBasicPutsForWriteOnlyHDFSStore()
Does put for write only HDFS store
|
void |
testByteArrays()
Puts byte arrays and fetches them back to ensure that
serialization of byte arrays is proper
|
void |
testClearRegionDataInHDFS() |
void |
testClearRegionDataInQueue() |
void |
testDelta()
Does put for write only HDFS store
|
void |
testFlushQueue() |
void |
testFlushQueueWO() |
void |
testForceAsyncMajorCompaction() |
void |
testForceSyncMajorCompaction() |
void |
testGetOperationalData()
verify that get on operational data does not read from HDFS
|
void |
testGlobalDestroyFromAccessor() |
void |
testGlobalDestroyWithHDFSData()
Test that doing a destroyRegion removes all data from HDFS.
|
void |
testGlobalDestroyWithQueueData()
Test that doing a destroyRegion removes all data from HDFS.
|
void |
testHDFSQueueSizeTest() |
void |
testPRAccessor()
verify that a PR accessor can be started
|
void |
testPUTDMLBulkSupport() |
void |
testPUTDMLSupport()
verify that PUT dml does not read from hdfs
|
void |
testSizeEstimate() |
void |
testValueFetchedFromLocal()
Tests if gets go to primary even if the value resides on secondary.
|
void |
testWOFileSizeParam()
create a server with maxfilesize as 2 MB.
|
void |
testWOTimeForRollOverParam()
create server with file rollover time as 2 secs.
|
protected void |
verifyHDFSData(VM vm,
String uniqueName) |
void |
verifyNoHDFSData(VM vm,
String uniqueName)
Make sure all of the data for a region in HDFS is destroyed
|
void |
verifyNoQOrPR(VM vm)
Make sure all async event queues and PRs a destroyed in
a member
|
protected void |
verifyTwoHDFSFiles(VM vm,
String uniqueName) |
protected void |
verifyTwoHDFSFilesWithTwoEntries(VM vm,
String uniqueName,
String value) |
cacheClose, closeCache, createFilesAndEntriesMap, createServerRegion, createServerRegion, createServerRegionAsync, createServerRegionAsync, doPuts, dumpFiles, setUp, tearDown2, testGetAllForAsyncQueue, testGetForAsyncQueue, testGetFromHDFS, testPutAllAndGetFromHDFS, testPutAllForAsyncQueue, testWObasicClose, validate, validateEmpty, verifyDataInHDFS, verifyInEntriesMapaddExceptionTag1, 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, toStringpublic RegionWithHDFSBasicDUnitTest(String name)
protected SerializableCallable getCreateRegionCallable(int totalnumOfBuckets, int batchSizeMB, int maximumEntries, String folderPath, String uniqueName, int batchInterval, boolean queuePersistent, boolean writeonly, long timeForRollover, long maxFileSize)
getCreateRegionCallable in class RegionWithHDFSTestBaseprotected void doPuts(String uniqueName, int start, int end)
doPuts in class RegionWithHDFSTestBaseprotected void doPutAll(String uniqueName, Map map)
doPutAll in class RegionWithHDFSTestBaseprotected void doDestroys(String uniqueName, int start, int end)
doDestroys in class RegionWithHDFSTestBaseprotected void checkWithGet(String uniqueName, int start, int end, boolean expectValue)
checkWithGet in class RegionWithHDFSTestBaseprotected void checkWithGetAll(String uniqueName, ArrayList arrayl)
checkWithGetAll in class RegionWithHDFSTestBasepublic void testValueFetchedFromLocal()
public void testHDFSQueueSizeTest()
public void testBasicPutsForWriteOnlyHDFSStore()
public void testDelta()
public void testByteArrays()
public void testClearRegionDataInQueue()
throws Throwable
Throwablepublic void testClearRegionDataInHDFS()
throws Throwable
Throwablepublic void doTestClearRegion(int batchInterval,
boolean waitForWriteToHDFS)
throws Throwable
Throwableprotected void setGfxdSystem(boolean isGfxd)
public void DISABLED_testLocalDestroy()
throws InterruptedException
InterruptedException - DISABLED until issues with PR primary failover are resolved - bug 47793.
The line validate(vm1, uniqueName, numEntries) failing because new
oplogs are not detected when the primary switches.public void testGlobalDestroyWithHDFSData()
throws InterruptedException
InterruptedExceptionpublic void testGlobalDestroyWithQueueData()
public void verifyNoQOrPR(VM vm)
public void verifyNoHDFSData(VM vm, String uniqueName)
protected AsyncInvocation doAsyncPuts(VM vm, String regionName, int start, int end, String suffix) throws Exception
doAsyncPuts in class RegionWithHDFSTestBaseExceptionprotected AsyncInvocation doAsyncPuts(VM vm, String regionName, int start, int end, String suffix, String value) throws Exception
Exceptionpublic void testGlobalDestroyFromAccessor()
public void testWOFileSizeParam()
throws Throwable
Throwablepublic void testWOTimeForRollOverParam()
throws Throwable
Throwableprotected void verifyHDFSData(VM vm, String uniqueName) throws Exception
verifyHDFSData in class RegionWithHDFSTestBaseExceptionprotected void verifyTwoHDFSFiles(VM vm, String uniqueName) throws Exception
Exceptionprotected void verifyTwoHDFSFilesWithTwoEntries(VM vm, String uniqueName, String value) throws Exception
Exceptionpublic void testPRAccessor()
public void testPUTDMLSupport()
public void testPUTDMLBulkSupport()
public void testGetOperationalData()
public void testSizeEstimate()
public void testForceAsyncMajorCompaction()
throws Exception
Exceptionpublic void testForceSyncMajorCompaction()
throws Exception
ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.