public class StressTestUnisolatedReadWriteIndex extends ProxyTestCase<Journal>
UnisolatedReadWriteIndex rather than the ConcurrencyManager.UnisolatedReadWriteIndex| Modifier and Type | Class and Description |
|---|---|
static interface |
StressTestUnisolatedReadWriteIndex.TestOptions
Additional properties understood by this test.
|
static class |
StressTestUnisolatedReadWriteIndex.WriteTask
A task that writes on named unisolated index(s).
|
TestCase2.MyProperties, TestCase2.RandomType_randomType, log| Constructor and Description |
|---|
StressTestUnisolatedReadWriteIndex() |
StressTestUnisolatedReadWriteIndex(String name) |
| Modifier and Type | Method and Description |
|---|---|
static com.bigdata.testutil.ExperimentDriver.Result |
doConcurrentClientTest(Journal journal,
long timeout,
int nresources,
int minLocks,
int maxLocks,
int ntrials,
int keyLen,
int nops,
double failureRate,
double commitRate)
A stress test of concurrent writers on one or more named indices.
|
void |
setUpComparisonTest(Properties properties) |
void |
tearDownComparisonTest() |
void |
test_concurrentClients()
A stress test with a small pool of concurrent clients.
|
getDelegate, getOurDelegate, getProperties, getStore, getStore, reopenStore, setDelegate, setUp, tearDowncheckIfProxy, fail, getRandomData, setUp, tearDownassertCondition, assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, getRandomDataassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logPropertiesassertEquals, 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 StressTestUnisolatedReadWriteIndex()
public StressTestUnisolatedReadWriteIndex(String name)
public void setUpComparisonTest(Properties properties) throws Exception
Exceptionpublic void test_concurrentClients()
throws InterruptedException
InterruptedExceptionpublic static com.bigdata.testutil.ExperimentDriver.Result doConcurrentClientTest(Journal journal, long timeout, int nresources, int minLocks, int maxLocks, int ntrials, int keyLen, int nops, double failureRate, double commitRate) throws InterruptedException
journal - The database.timeout - The #of seconds before the test will terminate.nresources - The #of named indices that will be used by the tasks.minLocks - The minimum #of resources in which a writer will obtain a lock
in [0:nresources].maxLocks - The maximum #of resources in which a writer will obtain a lock
in [minLocks:nresources].ntrials - The #of transactions to execute.keyLen - The length of the random unsigned byte[] keys used in the
operations. The longer the keys the less likely it is that
there will be a write-write conflict (that concurrent txs will
write on the same key).nops - The #of operations to be performed in each transaction.failureRate - The percentage of Writers that will throw a
SpuriousException rather than completing normally.InterruptedExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.