final int restarts = SF.applyLB(10, 3);
final int txCnt = SF.applyLB(250, 25);
for (int i = 0; i < GridTestUtils.SF.applyLB(5, 2); i++) { info("Iteration: " + i);
for (int i = 0; i < SF.applyLB(100, 10); i++) { try (Transaction tx = txs0.txStart(OPTIMISTIC, SERIALIZABLE)) { Integer val = cache0.get(key);
final int ITERATIONS_COUNT = SF.applyLB(100, 5); for (Integer key : keys) { log.info("Test key: " + key);
cachePCfg2.setBackups(1); cachePCfg2.setRebalanceOrder(2); cachePCfg2.setRebalanceDelay(SF.applyLB(5000, 500)); cachePCfg2.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL);
int threadCnt = SF.applyLB(30, 8);
final long awaitingTimeoutMs = SF.apply(5 * 60 * 1000);
for (int i = 0; i < GridTestUtils.SF.applyLB(10, 2); i++) { info("Iteration: " + i);
final int ITERATIONS_COUNT = SF.applyLB(1000, 50); for (int i = 0; i < ITERATIONS_COUNT; i++) { try {
/** * @throws Exception If failed. */ @Test public void testCommunicationFailureResolve_KillCoordinator_5() throws Exception { sesTimeout = 2000; testCommSpi = true; commFailureRslvr = KillCoordinatorCommunicationFailureResolver.FACTORY; startGrids(10); int crd = 0; int nodeIdx = 10; for (int i = 0; i < GridTestUtils.SF.applyLB(10, 2); i++) { info("Iteration: " + i); for (Ignite node : G.allGrids()) ZkTestCommunicationSpi.testSpi(node).initCheckResult(10); UUID crdId = ignite(crd).cluster().localNode().id(); ZookeeperDiscoverySpi spi = spi(ignite(crd + 1)); try { spi.resolveCommunicationFailure(spi.getNode(crdId), new Exception("test")); fail("Exception is not thrown"); } catch (IgniteSpiException e) { assertTrue("Unexpected exception: " + e, e.getCause() instanceof ClusterTopologyCheckedException); } waitForTopology(9); startGrid(nodeIdx++); waitForTopology(10); crd++; } }
/** * @param withClients If {@code true} also starts client nodes. * @throws Exception If failed. */ private void concurrentStart(final boolean withClients) throws Exception { int iterations = GridTestUtils.SF.applyLB(5, 1); for (int i = 0; i < iterations; i++) { log.info("Iteration: " + i); startGrid(0); final AtomicInteger idx = new AtomicInteger(1); IgniteInternalFuture fut = GridTestUtils.runMultiThreadedAsync(new Callable<Void>() { @Override public Void call() throws Exception { if (withClients) client.set(ThreadLocalRandom.current().nextBoolean()); int nodeIdx = idx.getAndIncrement(); Ignite node = startGrid(nodeIdx); checkNodeCaches(node, nodeIdx * 1000, 1000); return null; } }, 10, "start-node"); fut.get(); checkCaches(); startGrid(1000); checkCaches(); stopAllGrids(); } }
for (int i = 0; i < GridTestUtils.SF.applyLB(10, 2); i++) { info("Iteration: " + i);
for (int i = 0; i < GridTestUtils.SF.applyLB(5, 2); i++) { info("Iteration: " + i);
/** * @throws Exception If failed. */ @Test public void testPutRemoveConsistencyMultithreaded() throws Exception { Assume.assumeFalse("https://issues.apache.org/jira/browse/IGNITE-627", nearEnabled()); for (int i = 0; i < SF.applyLB(10, 2); i++) { log.info("Iteration: " + i); putRemoveConsistencyMultithreaded(); } }