Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5730418233 for ; Wed, 29 Jul 2015 16:25:57 +0000 (UTC) Received: (qmail 73645 invoked by uid 500); 29 Jul 2015 16:25:47 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 73613 invoked by uid 500); 29 Jul 2015 16:25:47 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 73604 invoked by uid 99); 29 Jul 2015 16:25:47 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jul 2015 16:25:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6A8431A8B81 for ; Wed, 29 Jul 2015 16:25:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.791 X-Spam-Level: * X-Spam-Status: No, score=1.791 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id O32276YZ90v2 for ; Wed, 29 Jul 2015 16:25:39 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 3DA5B205B3 for ; Wed, 29 Jul 2015 16:25:39 +0000 (UTC) Received: (qmail 73575 invoked by uid 99); 29 Jul 2015 16:25:38 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jul 2015 16:25:38 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8AB65DFB3B; Wed, 29 Jul 2015 16:25:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ntikhonov@apache.org To: commits@ignite.incubator.apache.org Message-Id: <6378c969442147889803eae82c9e9150@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-ignite git commit: IGNITE-1169 Fixed tests. Date: Wed, 29 Jul 2015 16:25:38 +0000 (UTC) Repository: incubator-ignite Updated Branches: refs/heads/ignite-1169 325458125 -> 5c3d82973 IGNITE-1169 Fixed tests. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/5c3d8297 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/5c3d8297 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/5c3d8297 Branch: refs/heads/ignite-1169 Commit: 5c3d82973cb80601540e6552c7b7b0b81c3f1fce Parents: 3254581 Author: nikolay_tikhonov Authored: Wed Jul 29 19:25:40 2015 +0300 Committer: nikolay_tikhonov Committed: Wed Jul 29 19:25:40 2015 +0300 ---------------------------------------------------------------------- .../communication/tcp/TcpCommunicationSpi.java | 19 +++++++++++++------ ...ommunicationSpiRecoveryAckFutureSelfTest.java | 3 +-- 2 files changed, 14 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5c3d8297/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java b/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java index 53c6ddf..18184f3 100644 --- a/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java +++ b/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java @@ -1749,11 +1749,16 @@ public class TcpCommunicationSpi extends IgniteSpiAdapter } /** + * Sends given message to destination node. Note that characteristics of the + * exchange such as durability, guaranteed delivery or error notification is + * dependant on SPI implementation. * - * @param node - * @param msg - * @return - * @throws IgniteSpiException + * @param destNode Destination node. + * @param msg Message to send. + * @return Future to be completed when ack will be received. + * @throws org.apache.ignite.spi.IgniteSpiException Thrown in case of any error during sending the message. + * Note that this is not guaranteed that failed communication will result + * in thrown exception as this is dependant on SPI implementation. */ public IgniteInternalFuture sendMessageWithAck(ClusterNode node, Message msg) throws IgniteSpiException { assert node != null; @@ -1764,8 +1769,10 @@ public class TcpCommunicationSpi extends IgniteSpiAdapter IgniteInternalFuture fut = null; - if (node.id().equals(getLocalNode().id())) { - notifyListener(node.id(), msg, NOOP); + UUID locNodeId = getLocalNodeId(); + + if (node.id().equals(locNodeId)) { + notifyListener(locNodeId, msg, NOOP); fut = new GridFinishedFuture<>(true); } http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5c3d8297/modules/core/src/test/java/org/apache/ignite/spi/communication/tcp/GridTcpCommunicationSpiRecoveryAckFutureSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/spi/communication/tcp/GridTcpCommunicationSpiRecoveryAckFutureSelfTest.java b/modules/core/src/test/java/org/apache/ignite/spi/communication/tcp/GridTcpCommunicationSpiRecoveryAckFutureSelfTest.java index 2c2ef2e..56feda1 100644 --- a/modules/core/src/test/java/org/apache/ignite/spi/communication/tcp/GridTcpCommunicationSpiRecoveryAckFutureSelfTest.java +++ b/modules/core/src/test/java/org/apache/ignite/spi/communication/tcp/GridTcpCommunicationSpiRecoveryAckFutureSelfTest.java @@ -170,8 +170,7 @@ public class GridTcpCommunicationSpiRecoveryAckFutureSelfTest