ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: #ignite-ring-18: add tests for segmentationResolveAttempts.
Date Fri, 26 Jun 2015 10:29:09 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-ring-18 [created] 4f46e695a


#ignite-ring-18: add tests for segmentationResolveAttempts.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/4f46e695
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/4f46e695
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/4f46e695

Branch: refs/heads/ignite-ring-18
Commit: 4f46e695a899625ca340d9b53a3ffa679f014611
Parents: 01d842a
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Fri Jun 26 13:28:48 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Fri Jun 26 13:28:48 2015 +0300

----------------------------------------------------------------------
 .../internal/managers/discovery/GridDiscoveryManager.java      | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/4f46e695/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<DiscoverySpi>
{
                 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();
         }
 


Mime
View raw message