/** {@inheritDoc} */ @Override protected void afterTest() throws Exception { TestReconnectPluginProvider.enabled = false; stopAllGrids(); }
/** * @throws Exception If failed. */ @Test public void testReconnect() throws Exception { Ignite srv = startGrid("server"); IgniteEvents evts = srv.events(); evts.enableLocal(EventType.EVTS_DISCOVERY_ALL); evts.localListen(new IgnitePredicate<Event>() { @Override public boolean apply(Event evt) { ClusterNode node = ((DiscoveryEvent)evt).eventNode(); rejoinAttr = node.attribute("test"); return true; } }, EventType.EVT_NODE_JOINED); Ignite client = startGrid("client"); reconnectClientNode(log, client, srv, null); assertEquals("2", rejoinAttr); } }