IGNITE-5747 GridCommonAbstractTest.startGridsMultiThreaded works very slowly if persistence is enabled - Fixes #2294.
Signed-off-by: Alexey Goncharuk <[email protected]> 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 <[email protected]> Authored: Tue Jul 25 16:50:35 2017 +0300 Committer: Alexey Goncharuk <[email protected]> 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; }
