You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by se...@apache.org on 2015/05/02 15:45:23 UTC
[2/2] incubator-ignite git commit: # IGNITE-709 Set timeout for
awaitPartitionMapExchange() to avoid tests hanging on TC.
# IGNITE-709 Set timeout for awaitPartitionMapExchange() to avoid tests hanging on TC.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/71bf9098
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/71bf9098
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/71bf9098
Branch: refs/heads/ignite-709_2
Commit: 71bf909830d6f2340d998de6f358f529d993647c
Parents: b09865a
Author: sevdokimov <se...@jetbrains.com>
Authored: Sat May 2 16:45:12 2015 +0300
Committer: sevdokimov <se...@jetbrains.com>
Committed: Sat May 2 16:45:12 2015 +0300
----------------------------------------------------------------------
.../testframework/junits/common/GridCommonAbstractTest.java | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/71bf9098/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 5533897..3c54efe 100644
--- 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
@@ -391,6 +391,12 @@ public abstract class GridCommonAbstractTest extends GridAbstractTest {
if (i == 0)
start = System.currentTimeMillis();
+ if (i >= 50)
+ throw new IgniteException("Timeout of waiting for topology map update [grid="
+ + g.name() + ", p=" + p + ", nodes=" + exp + ", owners=" + actual +
+ ", affNodes=" + affNodes + ", owners=" + owners + ", locNode="
+ + g.cluster().localNode().id() + ']');
+
Thread.sleep(200); // Busy wait.
continue;