Repository: ignite Updated Branches: refs/heads/ignite-5075-pds 8294e559e -> 6aff97579
ignite-5075 Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/6aff9757 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/6aff9757 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/6aff9757 Branch: refs/heads/ignite-5075-pds Commit: 6aff975790b0273356bbda33f9b37dc87253ba62 Parents: 8294e55 Author: sboikov <[email protected]> Authored: Wed May 31 17:06:16 2017 +0300 Committer: sboikov <[email protected]> Committed: Wed May 31 17:06:16 2017 +0300 ---------------------------------------------------------------------- ...odeWithIndexingAndGroupPutGetPersistenceSelfTest.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/6aff9757/modules/pds/src/test/java/org/apache/ignite/cache/database/IgnitePersistentStoreSingleNodeWithIndexingAndGroupPutGetPersistenceSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/pds/src/test/java/org/apache/ignite/cache/database/IgnitePersistentStoreSingleNodeWithIndexingAndGroupPutGetPersistenceSelfTest.java b/modules/pds/src/test/java/org/apache/ignite/cache/database/IgnitePersistentStoreSingleNodeWithIndexingAndGroupPutGetPersistenceSelfTest.java index ed011ac..665b9af 100644 --- a/modules/pds/src/test/java/org/apache/ignite/cache/database/IgnitePersistentStoreSingleNodeWithIndexingAndGroupPutGetPersistenceSelfTest.java +++ b/modules/pds/src/test/java/org/apache/ignite/cache/database/IgnitePersistentStoreSingleNodeWithIndexingAndGroupPutGetPersistenceSelfTest.java @@ -17,6 +17,8 @@ package org.apache.ignite.cache.database; +import org.apache.ignite.cache.affinity.AffinityFunction; +import org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction; import org.apache.ignite.configuration.CacheConfiguration; import org.apache.ignite.configuration.IgniteConfiguration; @@ -29,7 +31,12 @@ public class IgnitePersistentStoreSingleNodeWithIndexingAndGroupPutGetPersistenc @Override protected void configure(IgniteConfiguration cfg) { super.configure(cfg); - for (CacheConfiguration ccfg : cfg.getCacheConfiguration()) - ccfg.setGroupName("testGroup"); + for (CacheConfiguration ccfg : cfg.getCacheConfiguration()) { + AffinityFunction aff = ccfg.getAffinity(); + + int parts = aff != null ? aff.partitions() : RendezvousAffinityFunction.DFLT_PARTITION_COUNT; + + ccfg.setGroupName("testGroup-parts" + parts); + } } }
