ignite-db-x print more info for investigation

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

Branch: refs/heads/ignite-4652
Commit: e0e4d5941912dd37ce91bddbb6e6e86b19bcfce4
Parents: 47c7df9
Author: Dmitriy Govorukhin <dgovoruk...@gridgain.com>
Authored: Mon Feb 6 17:15:28 2017 +0300
Committer: Dmitriy Govorukhin <dgovoruk...@gridgain.com>
Committed: Mon Feb 6 17:15:28 2017 +0300

----------------------------------------------------------------------
 .../rebalancing/GridCacheRebalancingSyncSelfTest.java        | 8 ++++++--
 .../testframework/junits/common/GridCommonAbstractTest.java  | 5 +++--
 2 files changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/e0e4d594/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/rebalancing/GridCacheRebalancingSyncSelfTest.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/rebalancing/GridCacheRebalancingSyncSelfTest.java
 
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/rebalancing/GridCacheRebalancingSyncSelfTest.java
index f875b75..c613aed 100644
--- 
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/rebalancing/GridCacheRebalancingSyncSelfTest.java
+++ 
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/rebalancing/GridCacheRebalancingSyncSelfTest.java
@@ -458,7 +458,9 @@ public class GridCacheRebalancingSyncSelfTest extends 
GridCommonAbstractTest {
                     List<GridDhtLocalPartition> locs = top.localPartitions();
 
                     for (GridDhtLocalPartition loc : locs) {
-                        assertTrue("Wrong partition state, should be OWNING 
[state=" + loc.state() + "]",
+                        assertTrue("Wrong local partition state part=" + 
loc.id() +
+                                ", should be OWNING [state=" + loc.state() + 
"], node="
+                                + g0.name() + " cache=" + c.getName(),
                             loc.state() == GridDhtPartitionState.OWNING);
 
                         Collection<ClusterNode> affNodes =
@@ -481,7 +483,9 @@ public class GridCacheRebalancingSyncSelfTest extends 
GridCommonAbstractTest {
                         assertEquals(pMap.size(), locs.size());
 
                         for (Map.Entry entry : pMap.entrySet()) {
-                            assertTrue("Wrong partition state, should be 
OWNING [state=" + entry.getValue() + "]",
+                            assertTrue("Wrong remote partition state part=" + 
entry.getKey() +
+                                    ", should be OWNING [state=" + 
entry.getValue() + "], node="
+                                    + remote.name() + " cache=" + c.getName(),
                                 entry.getValue() == 
GridDhtPartitionState.OWNING);
                         }
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/e0e4d594/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 80ee6b9..5184fa3 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
@@ -687,8 +687,9 @@ public abstract class GridCommonAbstractTest extends 
GridAbstractTest {
 
                                     if (entry.getValue() != 
GridDhtPartitionState.OWNING) {
                                         LT.warn(log(),
-                                            "Waiting for correct partition 
state, should be OWNING [state=" +
-                                                entry.getValue() + "]");
+                                            "Waiting for correct partition 
state part=" + entry.getKey()
+                                                + ", should be OWNING [state=" 
+ entry.getValue() + "], node=" +
+                                                g.name() + ", cache=" + 
c.getName());
 
                                         Thread.sleep(200); // Busy wait.
 

Reply via email to