public class StressTestConcurrentUnisolatedIndices extends ProxyTestCase<Journal> implements com.bigdata.testutil.ExperimentDriver.IComparisonTest
Modifier and Type | Class and Description |
---|---|
static class |
StressTestConcurrentUnisolatedIndices.GenerateExperiment
Experiment generation utility class.
|
static interface |
StressTestConcurrentUnisolatedIndices.TestOptions
Additional properties understood by this test.
|
static class |
StressTestConcurrentUnisolatedIndices.WriteTask
A task that writes on named unisolated index(s).
|
TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
StressTestConcurrentUnisolatedIndices() |
StressTestConcurrentUnisolatedIndices(String name) |
Modifier and Type | Method and Description |
---|---|
com.bigdata.testutil.ExperimentDriver.Result |
doComparisonTest(Properties properties)
Setup and run a test.
|
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)
A stress test of concurrent writers on one or more named indices.
|
static void |
main(String[] args)
Runs a single instance of the test as configured in the code.
|
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, tearDown
checkIfProxy, fail, getRandomData, setUp, tearDown
assertCondition, assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, getRandomData
assertEquals, 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, logProperties
assertEquals, 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, toString
public StressTestConcurrentUnisolatedIndices()
public StressTestConcurrentUnisolatedIndices(String name)
public void setUpComparisonTest(Properties properties) throws Exception
setUpComparisonTest
in interface com.bigdata.testutil.ExperimentDriver.IComparisonTest
Exception
public void tearDownComparisonTest() throws Exception
tearDownComparisonTest
in interface com.bigdata.testutil.ExperimentDriver.IComparisonTest
Exception
public void test_concurrentClients() throws InterruptedException
InterruptedException
public 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) 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 Writer
s that will throw a
SpuriousException
rather than completing normally.InterruptedException
public static void main(String[] args) throws Exception
Exception
ExperimentDriver
,
StressTestConcurrentUnisolatedIndices.GenerateExperiment
public com.bigdata.testutil.ExperimentDriver.Result doComparisonTest(Properties properties) throws Exception
doComparisonTest
in interface com.bigdata.testutil.ExperimentDriver.IComparisonTest
properties
- There are no "optional" properties - you must make sure that
each property has a defined value.Exception
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.