startGrids(2); Ignite clientNode = startGrid(CLIENT_ID); Ignite joined1 = startGrid(4); joinedCache1.put(primaryKey(joinedCache1), 1); assertTrue("Failed to wait for event.", lsnr.latch.await(5, SECONDS)); Ignite joined2 = startGrid(5); joinedCache2.put(primaryKey(joinedCache2), 2); assertFalse("Unexpected event received.", GridTestUtils.waitForCondition(new GridAbsPredicate() { @Override public boolean apply() { return 1 != lsnr.latch.getCount(); stopGrid(4); stopGrid(5);
/** {@inheritDoc} */ @Override protected void afterTest() throws Exception { super.afterTest(); stopAllGrids(); }
/** {@inheritDoc} */ @Ignore("https://issues.apache.org/jira/browse/IGNITE-10769") @Test @Override public void testNodeJoinsRestartQuery() throws Exception { super.testNodeJoinsRestartQuery(); } }
startGrids(2); Ignite clientNode = startGrid(CLIENT_ID); Ignite joined1 = startGrid(4); joinedCache1.put(primaryKey(joinedCache1), 1); assertTrue("Failed to wait for event.", lsnr.latch.await(5, SECONDS)); Ignite joined2 = startGrid(5); joinedCache2.put(primaryKey(joinedCache2), 2); assertTrue("Failed to wait for event.", lsnr.latch.await(5, SECONDS)); stopGrid(4); stopGrid(5);
startGrids(3); Ignite clnNode = startGrid(CLIENT_ID); else { for (int srv = 0; srv < CLIENT_ID - 1; srv++) startGrid(srv); rndCache.apply().put(key, key); assertTrue("Failed to wait for event. Left events: " + lsnr.latch.getCount(), lsnr.latch.await(10, SECONDS)); stopGrid(srv); tryClose(cur);
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName); CacheConfiguration ccfg = new CacheConfiguration(DEFAULT_CACHE_NAME); ccfg.setCacheMode(PARTITIONED); ccfg.setAtomicityMode(atomicityMode()); ccfg.setWriteSynchronizationMode(FULL_SYNC); cfg.setCacheConfiguration(ccfg); cfg.setClientMode(client); return cfg; }