ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [02/47] ignite git commit: IGNITE-5747 GridCommonAbstractTest.startGridsMultiThreaded works very slowly if persistence is enabled - Fixes #2294.
Date Tue, 01 Aug 2017 09:25:45 GMT
IGNITE-5747 GridCommonAbstractTest.startGridsMultiThreaded works very slowly if persistence
is enabled - Fixes #2294.

Signed-off-by: Alexey Goncharuk <alexey.goncharuk@gmail.com>


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

Branch: refs/heads/master
Commit: 243913ee24fbc09d0ae5469bb1d99926b1a8e8d5
Parents: 00babb4
Author: EdShangGG <eshangareev@gridgain.com>
Authored: Tue Jul 25 16:50:35 2017 +0300
Committer: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Committed: Tue Jul 25 16:50:35 2017 +0300

----------------------------------------------------------------------
 .../testframework/junits/common/GridCommonAbstractTest.java    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/243913ee/modules/core/src/test/java/org/apache/ignite/testframework/junits/common/GridCommonAbstractTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/testframework/junits/common/GridCommonAbstractTest.java
b/modules/core/src/test/java/org/apache/ignite/testframework/junits/common/GridCommonAbstractTest.java
index dc7e89d..014103d 100755
--- a/modules/core/src/test/java/org/apache/ignite/testframework/junits/common/GridCommonAbstractTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/testframework/junits/common/GridCommonAbstractTest.java
@@ -503,8 +503,12 @@ public abstract class GridCommonAbstractTest extends GridAbstractTest
{
     protected final Ignite startGridsMultiThreaded(int cnt, boolean awaitPartMapExchange)
throws Exception {
         Ignite g = super.startGridsMultiThreaded(cnt);
 
-        if (awaitPartMapExchange)
+        if (awaitPartMapExchange) {
+            if (!g.active())
+                g.active(true);
+
             awaitPartitionMapExchange();
+        }
 
         return g;
     }


Mime
View raw message