public abstract class LockKeyColumnValueStoreTest extends AbstractKCVSTest
| Modifier and Type | Field and Description |
|---|---|
protected String |
concreteClassName |
static int |
CONCURRENCY |
static String |
DB_NAME |
protected static long |
EXPIRE_MS |
KeyColumnValueStoreManager[] |
manager |
static int |
NUM_TX |
KeyColumnValueStore[] |
store |
StoreTransaction[][] |
tx |
times| Constructor and Description |
|---|
LockKeyColumnValueStoreTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
expectedValueMismatchCausesMutateFailure() |
void |
expiredLocalLockIsIgnored() |
void |
expiredRemoteLockIsIgnored() |
StoreTransaction |
newTransaction(KeyColumnValueStoreManager manager) |
void |
open() |
abstract KeyColumnValueStoreManager |
openStorageManager(int id,
Configuration configuration) |
void |
parallelNoncontendedLockStressTest() |
void |
repeatLockingDoesNotExtendExpiration() |
void |
setUp() |
void |
singleLockAndUnlock() |
void |
singleTransactionWithMultipleLocks() |
void |
tearDown() |
void |
testLocalLockContention() |
void |
testLocksOnMultipleStores() |
void |
testRemoteLockContention() |
void |
transactionMayReenterLock() |
void |
twoLocalTransactionsWithIndependentLocks() |
void |
twoTransactionsWithIndependentLocks() |
getConsistentTxConfig, getTxConfigpublic static final int CONCURRENCY
public static final int NUM_TX
public static final String DB_NAME
protected static final long EXPIRE_MS
public KeyColumnValueStoreManager[] manager
public StoreTransaction[][] tx
public KeyColumnValueStore[] store
protected final String concreteClassName
public abstract KeyColumnValueStoreManager openStorageManager(int id, Configuration configuration) throws BackendException
BackendExceptionpublic void open()
throws BackendException
BackendExceptionpublic StoreTransaction newTransaction(KeyColumnValueStoreManager manager) throws BackendException
BackendExceptionpublic void close()
throws BackendException
BackendException@Test
public void singleLockAndUnlock()
throws BackendException
BackendException@Test
public void transactionMayReenterLock()
throws BackendException
BackendException@Test
public void expectedValueMismatchCausesMutateFailure()
throws BackendException
BackendException@Test
public void testLocalLockContention()
throws BackendException
BackendException@Test
public void testRemoteLockContention()
throws InterruptedException,
BackendException
InterruptedExceptionBackendException@Test
public void singleTransactionWithMultipleLocks()
throws BackendException
BackendException@Test
public void twoLocalTransactionsWithIndependentLocks()
throws BackendException
BackendException@Test
public void twoTransactionsWithIndependentLocks()
throws BackendException
BackendException@Test
public void expiredLocalLockIsIgnored()
throws BackendException,
InterruptedException
BackendExceptionInterruptedException@Test
public void expiredRemoteLockIsIgnored()
throws BackendException,
InterruptedException
BackendExceptionInterruptedException@Test
public void repeatLockingDoesNotExtendExpiration()
throws BackendException,
InterruptedException
BackendExceptionInterruptedException@Test
public void parallelNoncontendedLockStressTest()
throws InterruptedException
InterruptedExceptionCopyright © 2012–2024. All rights reserved.