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 A812A181E9 for ; Thu, 2 Jul 2015 06:54:35 +0000 (UTC) Received: (qmail 1659 invoked by uid 500); 2 Jul 2015 06:54:35 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 1628 invoked by uid 500); 2 Jul 2015 06:54:35 -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 1619 invoked by uid 99); 2 Jul 2015 06:54:35 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2015 06:54:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0A9DB1817A8 for ; Thu, 2 Jul 2015 06:54:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 9-bA-wW8RSzD for ; Thu, 2 Jul 2015 06:54:23 +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 A3F3A261E2 for ; Thu, 2 Jul 2015 06:54:16 +0000 (UTC) Received: (qmail 99973 invoked by uid 99); 2 Jul 2015 06:54:16 -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; Thu, 02 Jul 2015 06:54:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 764E0E3637; Thu, 2 Jul 2015 06:54:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anovikov@apache.org To: commits@ignite.incubator.apache.org Date: Thu, 02 Jul 2015 06:54:35 -0000 Message-Id: <5148944f5d2f44e9854d3e99bf448c99@git.apache.org> In-Reply-To: <53d0a4bd701f4d168b4aa7e87606e34b@git.apache.org> References: <53d0a4bd701f4d168b4aa7e87606e34b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [21/50] incubator-ignite git commit: #ignite-18: Property segmentationResolveAttempts seems to be ignored. #ignite-18: Property segmentationResolveAttempts seems to be ignored. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/1d5cfbcc Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/1d5cfbcc Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/1d5cfbcc Branch: refs/heads/ignite-gg-10416 Commit: 1d5cfbcc6ef79dd8da99dc46a2797952dbcf4eab Parents: 5dff89c Author: ivasilinets Authored: Mon Jun 29 17:50:49 2015 +0300 Committer: ivasilinets Committed: Mon Jun 29 17:50:49 2015 +0300 ---------------------------------------------------------------------- .../internal/managers/discovery/GridDiscoveryManager.java | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/1d5cfbcc/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java b/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java index 1e4b972..5e7600f 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java @@ -326,6 +326,12 @@ public class GridDiscoveryManager extends GridManagerAdapter { U.warn(log, "Configuration parameter 'segmentCheckFrequency' is too low " + "(at least 2000 ms recommended): " + segChkFreq); + int segResAttemp = ctx.config().getSegmentationResolveAttempts(); + + if (segResAttemp < 1) + throw new IgniteCheckedException( + "Segment resolve attempts cannot be negative or zero: " + segResAttemp); + checkSegmentOnStart(); }