ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [04/10] ignite git commit: IGNITE-5076: improved multi-threaded start of nodes
Date Fri, 30 Jun 2017 13:16:44 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/4936c888
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/4936c888
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/4936c888

Branch: refs/heads/ignite-gg-12389
Commit: 4936c8887f3ea58875c257ac2b999f90b6d9818f
Parents: 0bd6e8f
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 15:45:22 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/4936c888/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 01b27ad..a9a870e
--- 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
@@ -692,12 +692,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