IGNITE-6713 Fixed flaky rebalance test - Fixes #2914. Signed-off-by: Alexey Goncharuk <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/555b71ed Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/555b71ed Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/555b71ed Branch: refs/heads/ignite-6748 Commit: 555b71ed071abfeb84d1faa187776c61ca751858 Parents: 1d39507 Author: dpavlov <[email protected]> Authored: Mon Oct 30 15:24:20 2017 +0300 Committer: Alexey Goncharuk <[email protected]> Committed: Mon Oct 30 15:24:20 2017 +0300 ---------------------------------------------------------------------- .../cache/CacheRebalancingSelfTest.java | 2 + .../testsuites/IgniteReproducingSuite.java | 42 ++++++++++++++++++++ 2 files changed, 44 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/555b71ed/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheRebalancingSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheRebalancingSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheRebalancingSelfTest.java index e5a836a..147b76a 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheRebalancingSelfTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheRebalancingSelfTest.java @@ -23,6 +23,7 @@ import java.util.Set; import org.apache.ignite.Ignite; import org.apache.ignite.IgniteCache; import org.apache.ignite.cache.CachePeekMode; +import org.apache.ignite.cache.CacheWriteSynchronizationMode; import org.apache.ignite.configuration.CacheConfiguration; import org.apache.ignite.configuration.IgniteConfiguration; import org.apache.ignite.internal.IgniteEx; @@ -51,6 +52,7 @@ public class CacheRebalancingSelfTest extends GridCommonAbstractTest { CacheConfiguration<Integer,Integer> rebalabceCacheCfg = new CacheConfiguration<>(); rebalabceCacheCfg.setBackups(1); rebalabceCacheCfg.setName(REBALANCE_TEST_CACHE_NAME); + rebalabceCacheCfg.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC); cfg.setCacheConfiguration(new CacheConfiguration(DEFAULT_CACHE_NAME), rebalabceCacheCfg); http://git-wip-us.apache.org/repos/asf/ignite/blob/555b71ed/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteReproducingSuite.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteReproducingSuite.java b/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteReproducingSuite.java new file mode 100644 index 0000000..22bd610 --- /dev/null +++ b/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteReproducingSuite.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.ignite.testsuites; + +import junit.framework.TestSuite; + +/** + * Test suite for cycled run tests on PR code. <br> + * This empty suite may be used in case it is needed to run + * some test subset to reproduce an issue.<br> + * + * You may launch and check results on + * https://ci.ignite.apache.org/viewType.html?buildTypeId=Ignite20Tests_IgniteReproducingSuite + * + * This suite is not included into main build + */ +public class IgniteReproducingSuite extends TestSuite { + public static TestSuite suite() throws Exception { + TestSuite suite = new TestSuite("Ignite Issue Reproducing Test Suite"); + + //uncomment to add some test + //for (int i = 0; i < 100; i++) + // suite.addTestSuite(); + + return suite; + } +}
