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 A7F651892D for ; Wed, 10 Jun 2015 08:25:04 +0000 (UTC) Received: (qmail 56554 invoked by uid 500); 10 Jun 2015 08:25:04 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 56523 invoked by uid 500); 10 Jun 2015 08:25:04 -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 56514 invoked by uid 99); 10 Jun 2015 08:25:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2015 08:25:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 10 Jun 2015 08:22:53 +0000 Received: (qmail 56110 invoked by uid 99); 10 Jun 2015 08:24:40 -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, 10 Jun 2015 08:24:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0366BDFB8F; Wed, 10 Jun 2015 08:24:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.incubator.apache.org Message-Id: <2b57b53ff7f64f9ab2141392815f40bd@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-ignite git commit: #Changed timeout. Date: Wed, 10 Jun 2015 08:24:39 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Repository: incubator-ignite Updated Branches: refs/heads/ignite-yardstick-client d4529025b -> 5f530f261 #Changed timeout. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/5f530f26 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/5f530f26 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/5f530f26 Branch: refs/heads/ignite-yardstick-client Commit: 5f530f261b9fe6a50f1bcacb67d8a2569ce9facf Parents: d452902 Author: nikolay_tikhonov Authored: Wed Jun 10 11:24:40 2015 +0300 Committer: nikolay_tikhonov Committed: Wed Jun 10 11:24:40 2015 +0300 ---------------------------------------------------------------------- .../java/org/apache/ignite/yardstick/IgniteNode.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5f530f26/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteNode.java ---------------------------------------------------------------------- diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteNode.java b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteNode.java index 51ce51f..3311138 100644 --- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteNode.java +++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteNode.java @@ -22,6 +22,7 @@ import org.apache.ignite.cache.eviction.lru.*; import org.apache.ignite.configuration.*; import org.apache.ignite.internal.util.*; import org.apache.ignite.spi.communication.tcp.*; +import org.apache.ignite.spi.discovery.tcp.*; import org.springframework.beans.*; import org.springframework.beans.factory.xml.*; import org.springframework.context.support.*; @@ -127,7 +128,21 @@ public class IgniteNode implements BenchmarkServer { if (commSpi == null) commSpi = new TcpCommunicationSpi(); + commSpi.setLocalPortRange(200); + commSpi.setSocketWriteTimeout(3000); + + TcpDiscoverySpi spi = (TcpDiscoverySpi)c.getDiscoverySpi(); + + if (spi == null) + spi = new TcpDiscoverySpi(); + + spi.setNetworkTimeout(3000); + spi.setSocketTimeout(3000); + spi.setJoinTimeout(10_000); + c.setCommunicationSpi(commSpi); + c.setDiscoverySpi(spi); + c.setTimeServerPortBase(200); ignite = Ignition.start(c); }