anton-vinogradov commented on a change in pull request #8881:
URL: https://github.com/apache/ignite/pull/8881#discussion_r704523529
##########
File path:
modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySelfTest.java
##########
@@ -412,6 +416,58 @@ public void testFailureDetectionOnNodePing2() throws
Exception {
}
}
+ /**
+ * Checks that node leaves the cluster after lose of outgoing connections.
+ *
+ * @throws Exception If any error occurs.
+ */
+ @Test
+ public void testOutgoingConnectionsFailure() throws Exception {
+ try {
+ final int gridCnt = 4;
+
+ failureDetectionTimeout = 2000;
+
+ startGrids(gridCnt - 1);
+
+ nodeSpi.set(new FailureSimulatingTcpDiscoverySpi());
+
+ startGrid(gridCnt - 1);
+
+ UUID failingNodeId = grid(gridCnt - 1).localNode().id();
+
+ CountDownLatch testWaiter = new CountDownLatch(gridCnt - 1);
+
+ for (int i = 0; i < gridCnt - 1; ++i) {
Review comment:
Comment
```
++i in a loop is a new cool trend or this make some sense? %)
Anyway, this can be simplified to allGrids() loop if set before the last
node startup.
```
were ignored.
Still actual.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]