use of org.apache.ignite.spi.communication.tcp.internal.ConnectionClientPool in project ignite by apache.
the class GridTcpCommunicationSpiLogTest method testCloseClientConnectionsDebugLogMessage.
/**
* @throws Exception If failed.
*/
@Test
public void testCloseClientConnectionsDebugLogMessage() throws Exception {
LogListener logLsnr0 = LogListener.matches("The node client connections were closed").atLeast(1).atMost(1).build();
srvTestLog.registerListener(logLsnr0);
IgniteEx srv = startGrid(0);
Ignite client = startGrid(1);
TcpCommunicationSpi commSpi = (TcpCommunicationSpi) srv.context().config().getCommunicationSpi();
ConnectionClientPool connPool = U.field(commSpi, "clientPool");
connPool.forceCloseConnection(client.cluster().localNode().id());
U.sleep(1000);
assertTrue(logLsnr0.check());
}
Aggregations