You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2020/08/13 17:03:14 UTC

[GitHub] [ignite] Vladsz83 commented on a change in pull request #7977: Ignite 13040

Vladsz83 commented on a change in pull request #7977:
URL: https://github.com/apache/ignite/pull/7977#discussion_r470096717



##########
File path: modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryCoordinatorFailureTest.java
##########
@@ -282,17 +282,17 @@ public void awaitDrop() throws InterruptedException, IgniteCheckedException {
         /** {@inheritDoc} */
         @Override protected void writeToSocket(
             Socket sock,
-            TcpDiscoveryAbstractMessage msg,
             byte[] data,
             long timeout
         ) throws IOException {
-            if (isDrop(msg)) {
-                // Replace logic routine message with a stub to update last-sent-time to avoid segmentation on
-                // connRecoveryTimeout.
-                msg = new TcpDiscoveryConnectionCheckMessage(locNode);
-            }
 
-            super.writeToSocket(sock, msg, data, timeout);
+            // Replace logic routine message with a stub to update last-sent-time to avoid segmentation on

Review comment:
       @aleksey-kurinov I'm sure we don't need this failure-emulation method in `FailingDiscoverySpi` at all because it passes no message. The `msg` is always null. This `writeToSocket` works with `data`. The test works well without emulation a failure here.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org