You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pp...@apache.org on 2022/06/01 16:54:08 UTC
[ignite-extensions] branch master updated: IGNITE-17070 Fixed flaky IgniteCacheTopologyValidatorTest#testSplitWithBaseline test (#149)
This is an automated email from the ASF dual-hosted git repository.
ppa pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-extensions.git
The following commit(s) were added to refs/heads/master by this push:
new efc20f6 IGNITE-17070 Fixed flaky IgniteCacheTopologyValidatorTest#testSplitWithBaseline test (#149)
efc20f6 is described below
commit efc20f6e6497cee4d77c802c1f9500df9423e7ee
Author: Mikhail Petrov <32...@users.noreply.github.com>
AuthorDate: Wed Jun 1 19:54:01 2022 +0300
IGNITE-17070 Fixed flaky IgniteCacheTopologyValidatorTest#testSplitWithBaseline test (#149)
---
.../apache/ignite/plugin/cache/IgniteCacheTopologyValidatorTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/topology-validator-ext/src/test/java/org/apache/ignite/plugin/cache/IgniteCacheTopologyValidatorTest.java b/modules/topology-validator-ext/src/test/java/org/apache/ignite/plugin/cache/IgniteCacheTopologyValidatorTest.java
index d8a3f7b..25a575c 100644
--- a/modules/topology-validator-ext/src/test/java/org/apache/ignite/plugin/cache/IgniteCacheTopologyValidatorTest.java
+++ b/modules/topology-validator-ext/src/test/java/org/apache/ignite/plugin/cache/IgniteCacheTopologyValidatorTest.java
@@ -33,6 +33,7 @@ import org.apache.ignite.configuration.DataStorageConfiguration;
import org.apache.ignite.configuration.IgniteConfiguration;
import org.apache.ignite.internal.IgniteEx;
import org.apache.ignite.internal.processors.cache.CacheInvalidStateException;
+import org.apache.ignite.internal.processors.cache.distributed.GridCacheModuloAffinityFunction;
import org.apache.ignite.internal.processors.cache.distributed.dht.IgniteCacheTopologySplitAbstractTest;
import org.apache.ignite.internal.util.typedef.G;
import org.apache.ignite.internal.util.typedef.internal.U;
@@ -66,7 +67,7 @@ public class IgniteCacheTopologyValidatorTest extends IgniteCacheTopologySplitAb
private static final String LOCAL_HOST = "localhost";
/** */
- private static final int CACHE_KEY_CNT = 1000;
+ private static final int CACHE_KEY_CNT = 10;
/** */
public static final int CACHE_CNT = 2;
@@ -502,6 +503,7 @@ public class IgniteCacheTopologyValidatorTest extends IgniteCacheTopologySplitAb
public void createCaches() {
for (int cacheIdx = 0; cacheIdx < CACHE_CNT; cacheIdx++) {
grid(0).createCache(new CacheConfiguration<>()
+ .setAffinity(new GridCacheModuloAffinityFunction(CACHE_KEY_CNT, CACHE_KEY_CNT))
.setName(cacheName(cacheIdx))
.setWriteSynchronizationMode(FULL_SYNC)
.setCacheMode(REPLICATED)