ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject ignite git commit: ignite-5075-pds
Date Wed, 31 May 2017 13:43:39 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-5075-debug 4b2040abf -> 16264b3e3


ignite-5075-pds


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

Branch: refs/heads/ignite-5075-debug
Commit: 16264b3e3b47fd1aeaa517b49c33b6a3c64a8050
Parents: 4b2040a
Author: sboikov <sboikov@gridgain.com>
Authored: Wed May 31 16:43:32 2017 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Wed May 31 16:43:32 2017 +0300

----------------------------------------------------------------------
 ...NodeWithIndexingAndGroupPutGetPersistenceSelfTest.java | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/16264b3e/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..c26b6b2 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,7 @@
 
 package org.apache.ignite.cache.database;
 
+import org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction;
 import org.apache.ignite.configuration.CacheConfiguration;
 import org.apache.ignite.configuration.IgniteConfiguration;
 
@@ -29,7 +30,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()) {
+            RendezvousAffinityFunction aff = (RendezvousAffinityFunction)ccfg.getAffinity();
+
+            int parts = aff != null ? aff.getPartitions() : RendezvousAffinityFunction.DFLT_PARTITION_COUNT;
+
+            ccfg.setGroupName("testGroup-parts" + parts);
+        }
     }
 }


Mime
View raw message