ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [36/50] incubator-ignite git commit: #ignite-237: remove debug.
Date Tue, 03 Mar 2015 12:58:12 GMT
#ignite-237: remove debug.


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

Branch: refs/heads/ignite-349
Commit: 6deba53c2747432c36503ba83932199a943cdcb7
Parents: 6531cbd
Author: ivasilinets <vasilinetc.ira@gmail.com>
Authored: Sun Mar 1 22:59:47 2015 +0300
Committer: ivasilinets <vasilinetc.ira@gmail.com>
Committed: Sun Mar 1 22:59:47 2015 +0300

----------------------------------------------------------------------
 ...GridCacheContinuousQueryAbstractSelfTest.java | 19 +++----------------
 1 file changed, 3 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/6deba53c/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/query/continuous/GridCacheContinuousQueryAbstractSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/query/continuous/GridCacheContinuousQueryAbstractSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/query/continuous/GridCacheContinuousQueryAbstractSelfTest.java
index 850a213..db1ac5a 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/query/continuous/GridCacheContinuousQueryAbstractSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/query/continuous/GridCacheContinuousQueryAbstractSelfTest.java
@@ -159,23 +159,10 @@ public abstract class GridCacheContinuousQueryAbstractSelfTest extends
GridCommo
             }
         }
 
-        boolean allEmpty = true;
-
-        for (int i = 0; i < gridCount(); i++) {
-            Set<Cache.Entry<Object, Object>> entries = ((IgniteKernal) grid(i)).cache(null).entrySet();
-
-            for (Cache.Entry entry : entries) {
-                boolean primary = grid(i).affinity(null).isPrimary(grid(i).localNode(), entry.getKey());
-
-                boolean backup = grid(i).affinity(null).isBackup(grid(i).localNode(), entry.getKey());
-
-                info("Not removed entry [grid=" + i + ", primary=" + primary + ", backup="
+ backup + ']');
-
-                allEmpty = false;
-            }
-        }
+        for (int i = 0; i < gridCount(); i++)
+            assertEquals("Cache is not empty: " + ((IgniteKernal)grid(i)).cache(null).entrySet(),
0,
+                ((IgniteKernal)grid(i)).cache(null).size());
 
-        assertTrue(allEmpty);
 
         for (int i = 0; i < gridCount(); i++) {
             GridContinuousProcessor proc = ((IgniteKernal)grid(i)).context().continuous();


Mime
View raw message