ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject [08/34] incubator-ignite git commit: Ignite-54-55 cache<Object, Object> instead of <String, Integer> to support remove(key) action
Date Thu, 05 Feb 2015 13:54:04 GMT
Ignite-54-55 cache<Object, Object> instead of <String, Integer> to support remove(key)
action


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

Branch: refs/heads/sprint-1
Commit: b27d701f8a1461710fe0c88755c8ae3b708877de
Parents: a55dab5
Author: Anton Vinogradov <avinogradov@gridgain.com>
Authored: Sun Jan 25 22:34:33 2015 +0300
Committer: Anton Vinogradov <avinogradov@gridgain.com>
Committed: Sun Jan 25 22:34:33 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/cache/GridCacheAbstractSelfTest.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/b27d701f/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractSelfTest.java
index 49309e7..c83f9b6 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractSelfTest.java
@@ -115,7 +115,8 @@ public abstract class GridCacheAbstractSelfTest extends GridCommonAbstractTest
{
                             // Preloading may happen as nodes leave, so we need to wait.
                             new GridAbsPredicateX() {
                                 @Override public boolean applyx() throws IgniteCheckedException
{
-                                    GridCache<String, Integer> cache = cache(fi);
+                                    //<Object, Object> to support remove(key)
+                                    GridCache<Object, Object> cache = grid(fi).cache(null);
 
                                     cache.removeAll();
 
@@ -124,7 +125,7 @@ public abstract class GridCacheAbstractSelfTest extends GridCommonAbstractTest
{
                                     // removeAll() removes mapping only when it presents
at a primary node.
                                     // To remove all mappings used force remove by key.
                                     if (cache.size() > 0) {
-                                        for (String k : cache.keySet()) {
+                                        for (Object k : cache.keySet()) {
                                             cache.remove(k);
                                         }
                                     }


Mime
View raw message