sp-1 fixing tests
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/0bd6b838 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/0bd6b838 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/0bd6b838 Branch: refs/heads/ignite-sql-tests Commit: 0bd6b838585d961731ea3b83c1549f362fe5371c Parents: 6200748 Author: Yakov Zhdanov <yzhda...@gridgain.com> Authored: Mon Feb 9 14:20:15 2015 +0300 Committer: Yakov Zhdanov <yzhda...@gridgain.com> Committed: Mon Feb 9 14:20:15 2015 +0300 ---------------------------------------------------------------------- .../processors/cache/GridCacheAbstractFullApiSelfTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0bd6b838/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java index 8f02feb..6a33caf 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java @@ -3203,6 +3203,9 @@ public abstract class GridCacheAbstractFullApiSelfTest extends GridCacheAbstract assert cache.localPeek(key2, CachePeekMode.ONHEAP) == null; assert cache.localPeek(key3, CachePeekMode.ONHEAP) == 3; + if (cache.getConfiguration(CacheConfiguration.class).getDistributionMode() == CacheDistributionMode.NEAR_ONLY) + return; + loadAll(cache, ImmutableSet.of(key1, key2), true); assert cache.localPeek(key1, CachePeekMode.ONHEAP) == 1; @@ -3642,7 +3645,6 @@ public abstract class GridCacheAbstractFullApiSelfTest extends GridCacheAbstract /** * @param key Key. * @return Cache. - * @throws Exception If failed. */ protected IgniteCache<String, Integer> primaryCache(String key) { return primaryIgnite(key).jcache(null);