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 000EC18B0E for ; Fri, 30 Oct 2015 11:14:49 +0000 (UTC) Received: (qmail 31249 invoked by uid 500); 30 Oct 2015 11:14:46 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 31214 invoked by uid 500); 30 Oct 2015 11:14:46 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 31205 invoked by uid 99); 30 Oct 2015 11:14:46 -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; Fri, 30 Oct 2015 11:14:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9ABEDE0099; Fri, 30 Oct 2015 11:14:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.apache.org Message-Id: <50328ae5c59d4873b20b0757ba16f7e9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ignite git commit: ignite-1758 Date: Fri, 30 Oct 2015 11:14:46 +0000 (UTC) Repository: ignite Updated Branches: refs/heads/ignite-1758 02831be0a -> a78f0e714 ignite-1758 Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/a78f0e71 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/a78f0e71 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/a78f0e71 Branch: refs/heads/ignite-1758 Commit: a78f0e7144c08e516295d06a822dc2f94236e0a1 Parents: 02831be Author: sboikov Authored: Fri Oct 30 14:14:32 2015 +0300 Committer: sboikov Committed: Fri Oct 30 14:14:32 2015 +0300 ---------------------------------------------------------------------- .../cache/distributed/CacheGetFutureHangsSelfTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/a78f0e71/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/CacheGetFutureHangsSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/CacheGetFutureHangsSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/CacheGetFutureHangsSelfTest.java index 51e76f6..659520b 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/CacheGetFutureHangsSelfTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/CacheGetFutureHangsSelfTest.java @@ -32,6 +32,9 @@ import org.apache.ignite.internal.IgniteInternalFuture; import org.apache.ignite.internal.util.typedef.T2; import org.apache.ignite.marshaller.optimized.OptimizedMarshaller; import org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi; +import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi; +import org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder; +import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder; import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; import org.jetbrains.annotations.Nullable; @@ -41,6 +44,9 @@ import static org.apache.ignite.cache.CacheWriteSynchronizationMode.PRIMARY_SYNC * Test for reproducing problems during simultaneously Ignite instances stopping and cache requests executing. */ public class CacheGetFutureHangsSelfTest extends GridCommonAbstractTest { + /** */ + private static TcpDiscoveryIpFinder ipFinder = new TcpDiscoveryVmIpFinder(true); + /** Grid count. */ private static final int GRID_CNT = 8; @@ -55,6 +61,8 @@ public class CacheGetFutureHangsSelfTest extends GridCommonAbstractTest { @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); + ((TcpDiscoverySpi)cfg.getDiscoverySpi()).setIpFinder(ipFinder); + ((TcpCommunicationSpi)cfg.getCommunicationSpi()).setSharedMemoryPort(-1); OptimizedMarshaller marsh = new OptimizedMarshaller();