ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [12/13] ignite git commit: ignite-5272
Date Wed, 07 Jun 2017 15:13:49 GMT
ignite-5272


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

Branch: refs/heads/ignite-5272
Commit: d88144394141f35b423acbfc4b06d9da9f18437e
Parents: 91fedd8
Author: sboikov <sboikov@gridgain.com>
Authored: Wed Jun 7 11:34:55 2017 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Wed Jun 7 11:34:55 2017 +0300

----------------------------------------------------------------------
 .../cache/IgniteDynamicClientCacheStartSelfTest.java    | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/d8814439/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteDynamicClientCacheStartSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteDynamicClientCacheStartSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteDynamicClientCacheStartSelfTest.java
index c7e55a3..a0d0549 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteDynamicClientCacheStartSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteDynamicClientCacheStartSelfTest.java
@@ -337,6 +337,9 @@ public class IgniteDynamicClientCacheStartSelfTest extends GridCommonAbstractTes
                     caches.add(client.getOrCreateCache(ccfg));
             }
 
+            for (IgniteCache cache : caches)
+                checkCache(client, cache.getName(), false, false);
+
             Map<Integer, Integer> map1 = new HashMap<>();
             Map<Integer, Integer> map2 = new HashMap<>();
 
@@ -356,8 +359,11 @@ public class IgniteDynamicClientCacheStartSelfTest extends GridCommonAbstractTes
                 checkCacheData(map2, cache.getName());
             }
 
-            for (IgniteCache<Integer, Integer> cache : caches)
+            for (IgniteCache<Integer, Integer> cache : caches) {
                 cache.close();
+
+                checkNoCache(client, cache.getName());
+            }
         }
         finally {
             for (CacheConfiguration ccfg : cacheConfigurations(grp, atomicityMode))
@@ -441,9 +447,9 @@ public class IgniteDynamicClientCacheStartSelfTest extends GridCommonAbstractTes
             assertEquals(near, disco.cacheNearNode(node, cacheName));
 
             if (srv)
-                assertTrue(ignite0.affinity(DEFAULT_CACHE_NAME).primaryPartitions(node).length
> 0);
+                assertTrue(ignite0.affinity(cacheName).primaryPartitions(node).length >
0);
             else
-                assertEquals(0, ignite0.affinity(DEFAULT_CACHE_NAME).primaryPartitions(node).length);
+                assertEquals(0, ignite0.affinity(cacheName).primaryPartitions(node).length);
         }
 
         assertNotNull(ignite.cache(cacheName));


Mime
View raw message