/** * @throws Exception If failed. */ @Test public void testNonDeadLockInListenerMvccTxJCacheApi() throws Exception { testNonDeadLockInListener(cacheConfiguration(PARTITIONED, 2, TRANSACTIONAL_SNAPSHOT), true, true, true); }
/** {@inheritDoc} */ @Override protected void beforeTestsStarted() throws Exception { super.beforeTestsStarted(); startGridsMultiThreaded(NODES - 1); client = true; startGrid(NODES - 1); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInFilterAtomicJCacheApi() throws Exception { testNonDeadLockInFilter(cacheConfiguration(PARTITIONED, 2, ATOMIC), true, true, true); }
boolean asyncLsnr, boolean jcacheApi) throws Exception { ignite(0).createCache(ccfg); final IgniteCache cache = grid(nodeIdx).cache(cacheName); final QueryTestKey key = NODES - 1 != nodeIdx ? affinityKey(cache) : new QueryTestKey(1); assertTrue("Failed to waiting event.", U.await(latch, 3, SECONDS)); assertEquals(cache.get(key), new QueryTestValue(2)); assertTrue("Failed to waiting event from listener.", U.await(latch, 3, SECONDS)); ignite(0).destroyCache(ccfg.getName());
final boolean asyncLsnr, boolean jcacheApi) throws Exception { ignite(0).createCache(ccfg); final IgniteCache cache = grid(nodeIdx).cache(cacheName); final QueryTestKey key = NODES - 1 != nodeIdx ? affinityKey(cache) : new QueryTestKey(1); assertEquals(cache.get(key), new QueryTestValue(2)); assertTrue("Failed to waiting event from filter.", U.await(latch, 3, SECONDS)); ignite(0).destroyCache(ccfg.getName());
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInListenerAtomic() throws Exception { testNonDeadLockInListener(cacheConfiguration(PARTITIONED, 2, ATOMIC), true, true, false); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInFilterReplicatedAtomic() throws Exception { testNonDeadLockInFilter(cacheConfiguration(REPLICATED, 2, ATOMIC), true, true, false); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInListenerAtomicWithoutBackup() throws Exception { testNonDeadLockInListener(cacheConfiguration(PARTITIONED, 0, ATOMIC), true, true, false); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInFilterReplicated() throws Exception { testNonDeadLockInFilter(cacheConfiguration(REPLICATED, 2, TRANSACTIONAL), true, true, false); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInListener() throws Exception { testNonDeadLockInListener(cacheConfiguration(PARTITIONED, 2, TRANSACTIONAL), true, true, false); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInFilterMvcc() throws Exception { testNonDeadLockInFilter(cacheConfiguration(PARTITIONED, 2, TRANSACTIONAL_SNAPSHOT), true, true, false); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInListenerReplicatedJCacheApiMvcc() throws Exception { testNonDeadLockInListener(cacheConfiguration(REPLICATED, 2, TRANSACTIONAL_SNAPSHOT), true, true, true); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInFilterTxJCacheApi() throws Exception { testNonDeadLockInFilter(cacheConfiguration(PARTITIONED, 2, TRANSACTIONAL), true, true, true); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInFilterSyncFilterMvcc() throws Exception { testNonDeadLockInListener(cacheConfiguration(PARTITIONED, 2, TRANSACTIONAL_SNAPSHOT), false, true, false); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInFilterTx() throws Exception { testNonDeadLockInFilter(cacheConfiguration(PARTITIONED, 2, TRANSACTIONAL), true, true, false); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInListenerAtomicJCacheApi() throws Exception { testNonDeadLockInListener(cacheConfiguration(PARTITIONED, 2, ATOMIC), true, true, true); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInFilterMvccTxJCacheApi() throws Exception { testNonDeadLockInFilter(cacheConfiguration(PARTITIONED, 2, TRANSACTIONAL_SNAPSHOT), true, true, true); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInListenerAtomicWithoutBackupJCacheApi() throws Exception { testNonDeadLockInListener(cacheConfiguration(PARTITIONED, 0, ATOMIC), true, true, true); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInFilterAtomicWithoutBackup() throws Exception { testNonDeadLockInFilter(cacheConfiguration(PARTITIONED, 0, ATOMIC), true, true, false); }
/** * @throws Exception If failed. */ @Test public void testNonDeadLockInFilterTxSyncFilter() throws Exception { testNonDeadLockInListener(cacheConfiguration(PARTITIONED, 2, TRANSACTIONAL), false, true, false); }