ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [08/28] ignite git commit: IGNITE-5076: improved multi-threaded start of nodes
Date Tue, 04 Jul 2017 08:19:31 GMT
IGNITE-5076: improved multi-threaded start of nodes


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

Branch: refs/heads/ignite-2.1.2-exchange
Commit: 94170406cd974408ffe6b8276c785b443832484e
Parents: f6cbba3
Author: Slava Koptilin <slava.koptilin@gmail.com>
Authored: Mon Jun 26 15:37:26 2017 +0300
Committer: agura <agura@gridgain.com>
Committed: Thu Jun 29 16:41:04 2017 +0300

----------------------------------------------------------------------
 .../ignite/testframework/junits/GridAbstractTest.java     | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/94170406/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java
b/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java
old mode 100644
new mode 100755
index 58eceaa..24fba95
--- a/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java
@@ -691,12 +691,14 @@ public abstract class GridAbstractTest extends TestCase {
      * @throws Exception If failed.
      */
     protected Ignite startGridsMultiThreaded(int cnt) throws Exception {
-        if (cnt == 1)
-            return startGrids(1);
+        assert cnt > 0 : "Number of grids must be a positive number";
 
-        Ignite ignite = startGridsMultiThreaded(0, cnt);
+        Ignite ignite = startGrids(1);
 
-        checkTopology(cnt);
+        if (cnt > 1) {
+            startGridsMultiThreaded(1, cnt - 1);
+            checkTopology(cnt);
+        }
 
         return ignite;
     }


Mime
View raw message