use of org.apache.ignite.cache.CacheWriteSynchronizationMode in project ignite by apache.
the class TxOptimisticDeadlockDetectionTest method testDeadlocksPartitioned.
/**
* @throws Exception If failed.
*/
@Test
public void testDeadlocksPartitioned() throws Exception {
for (CacheWriteSynchronizationMode syncMode : CacheWriteSynchronizationMode.values()) {
doTestDeadlocks(createCache(PARTITIONED, syncMode, false), ORDINAL_START_KEY);
doTestDeadlocks(createCache(PARTITIONED, syncMode, false), CUSTOM_START_KEY);
}
}
use of org.apache.ignite.cache.CacheWriteSynchronizationMode in project ignite by apache.
the class TxOptimisticDeadlockDetectionTest method testDeadlocksPartitionedNear.
/**
* @throws Exception If failed.
*/
@Test
public void testDeadlocksPartitionedNear() throws Exception {
for (CacheWriteSynchronizationMode syncMode : CacheWriteSynchronizationMode.values()) {
doTestDeadlocks(createCache(PARTITIONED, syncMode, true), ORDINAL_START_KEY);
doTestDeadlocks(createCache(PARTITIONED, syncMode, true), CUSTOM_START_KEY);
}
}
use of org.apache.ignite.cache.CacheWriteSynchronizationMode in project ignite by apache.
the class TxOptimisticDeadlockDetectionTest method testDeadlocksReplicated.
/**
* @throws Exception If failed.
*/
@Test
public void testDeadlocksReplicated() throws Exception {
for (CacheWriteSynchronizationMode syncMode : CacheWriteSynchronizationMode.values()) {
doTestDeadlocks(createCache(REPLICATED, syncMode, false), ORDINAL_START_KEY);
doTestDeadlocks(createCache(REPLICATED, syncMode, false), CUSTOM_START_KEY);
}
}
use of org.apache.ignite.cache.CacheWriteSynchronizationMode in project ignite by apache.
the class TxPessimisticDeadlockDetectionTest method testDeadlocksPartitioned.
/**
* @throws Exception If failed.
*/
@Test
public void testDeadlocksPartitioned() throws Exception {
for (CacheWriteSynchronizationMode syncMode : CacheWriteSynchronizationMode.values()) {
doTestDeadlocks(createCache(PARTITIONED, syncMode, false), ORDINAL_START_KEY);
doTestDeadlocks(createCache(PARTITIONED, syncMode, false), CUSTOM_START_KEY);
}
}
use of org.apache.ignite.cache.CacheWriteSynchronizationMode in project ignite by apache.
the class TxPessimisticDeadlockDetectionTest method testDeadlocksLocal.
/**
* @throws Exception If failed.
*/
@Test
public void testDeadlocksLocal() throws Exception {
for (CacheWriteSynchronizationMode syncMode : CacheWriteSynchronizationMode.values()) {
IgniteCache cache = null;
try {
cache = createCache(LOCAL, syncMode, false);
awaitPartitionMapExchange();
doTestDeadlock(2, true, true, false, ORDINAL_START_KEY);
doTestDeadlock(2, true, true, false, CUSTOM_START_KEY);
} finally {
if (cache != null)
cache.destroy();
}
}
}
Aggregations