ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject ignite git commit: GridCacheValueConsistencyAbstractSelfTest: do not need to check outdated method cache.keySet/values.
Date Mon, 09 Jan 2017 12:18:20 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-3477 715821b29 -> 5c6fb554c


GridCacheValueConsistencyAbstractSelfTest: do not need to check outdated method cache.keySet/values.


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

Branch: refs/heads/ignite-3477
Commit: 5c6fb554ccddbbbcb04cfd640921ba1304d0a65d
Parents: 715821b
Author: sboikov <sboikov@gridgain.com>
Authored: Mon Jan 9 15:18:26 2017 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Mon Jan 9 15:18:26 2017 +0300

----------------------------------------------------------------------
 ...idCacheValueConsistencyAbstractSelfTest.java | 30 --------------------
 1 file changed, 30 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/5c6fb554/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheValueConsistencyAbstractSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheValueConsistencyAbstractSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheValueConsistencyAbstractSelfTest.java
index 8c3aceb..61ddd70 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheValueConsistencyAbstractSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheValueConsistencyAbstractSelfTest.java
@@ -18,7 +18,6 @@
 package org.apache.ignite.internal.processors.cache;
 
 import java.util.Random;
-import java.util.Set;
 import java.util.concurrent.Callable;
 import java.util.concurrent.atomic.AtomicInteger;
 import org.apache.ignite.Ignite;
@@ -28,8 +27,6 @@ import org.apache.ignite.cache.affinity.Affinity;
 import org.apache.ignite.cluster.ClusterNode;
 import org.apache.ignite.configuration.CacheConfiguration;
 import org.apache.ignite.configuration.NearCacheConfiguration;
-import org.apache.ignite.internal.IgniteKernal;
-import org.apache.ignite.internal.util.typedef.F;
 
 import static org.apache.ignite.IgniteSystemProperties.IGNITE_ATOMIC_CACHE_DELETE_HISTORY_SIZE;
 import static org.apache.ignite.cache.CacheAtomicWriteOrderMode.CLOCK;
@@ -397,8 +394,6 @@ public abstract class GridCacheValueConsistencyAbstractSelfTest extends
GridCach
 
         info("Checking keySet consistency");
 
-        for (int g = 0; g < gridCount(); g++)
-            checkKeySet(grid(g));
     }
 
     /**
@@ -421,29 +416,4 @@ public abstract class GridCacheValueConsistencyAbstractSelfTest extends
GridCach
                 ", backup=" + backup + ']');
         }
     }
-
-    /**
-     * @param g Grid to check.
-     */
-    private void checkKeySet(Ignite g) {
-        GridCacheAdapter<Object, Object> cache = ((IgniteKernal)g).internalCache(null);
-
-        Set<Object> keys = cache.keySet();
-
-        int cacheSize = cache.size();
-        int keySetSize = keys.size();
-
-        int itSize = 0;
-
-        for (Object ignored : keys)
-            itSize++;
-
-        int valsSize = F.size(cache.values().iterator());
-
-        info("cacheSize=" + cacheSize + ", keysSize=" + keySetSize + ", valsSize=" + valsSize
+
-            ", itSize=" + itSize + ']');
-
-        assertEquals("cacheSize vs itSize", cacheSize, itSize);
-        assertEquals("cacheSize vs keySeySize", cacheSize, keySetSize);
-    }
 }
\ No newline at end of file


Mime
View raw message