You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ni...@apache.org on 2024/12/14 14:07:08 UTC

(ignite) branch master updated: IGNITE-23991 Remove setForceServerMode from CacheLateAffinityAssignmentTest (#11740)

This is an automated email from the ASF dual-hosted git repository.

nizhikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new c244c5d7974 IGNITE-23991 Remove setForceServerMode from CacheLateAffinityAssignmentTest (#11740)
c244c5d7974 is described below

commit c244c5d797485d2d16c06f9784d069c0ded9fad8
Author: Nikolay <ni...@apache.org>
AuthorDate: Sat Dec 14 17:07:00 2024 +0300

    IGNITE-23991 Remove setForceServerMode from CacheLateAffinityAssignmentTest (#11740)
---
 .../CacheLateAffinityAssignmentTest.java           | 55 ----------------------
 1 file changed, 55 deletions(-)

diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/CacheLateAffinityAssignmentTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/CacheLateAffinityAssignmentTest.java
index 8c0205592d4..df3f86c5f5e 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/CacheLateAffinityAssignmentTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/CacheLateAffinityAssignmentTest.java
@@ -114,9 +114,6 @@ import static org.apache.ignite.testframework.GridTestUtils.waitForCondition;
  *
  */
 public class CacheLateAffinityAssignmentTest extends GridCommonAbstractTest {
-    /** */
-    private boolean forceSrvMode;
-
     /** */
     private static final String CACHE_NAME1 = "testCache1";
 
@@ -158,7 +155,6 @@ public class CacheLateAffinityAssignmentTest extends GridCommonAbstractTest {
 
         TcpDiscoverySpi discoSpi = (TcpDiscoverySpi)cfg.getDiscoverySpi();
 
-        discoSpi.setForceServerMode(forceSrvMode);
         discoSpi.setNetworkTimeout(60_000);
 
         cfg.setClientFailureDetectionTimeout(100000);
@@ -1949,62 +1945,11 @@ public class CacheLateAffinityAssignmentTest extends GridCommonAbstractTest {
         checkAffinity(4, topVer(4, 0), true);
     }
 
-    /**
-     * @throws Exception If failed.
-     */
-    @Test
-    public void testClientStartFirst1() throws Exception {
-        clientStartFirst(1);
-    }
-
-    /**
-     * @throws Exception If failed.
-     */
-    @Test
-    public void testClientStartFirst2() throws Exception {
-        clientStartFirst(3);
-    }
-
-    /**
-     * @param clients Number of client nodes.
-     * @throws Exception If failed.
-     */
-    private void clientStartFirst(int clients) throws Exception {
-        forceSrvMode = true;
-
-        int topVer = 0;
-
-        for (int i = 0; i < clients; i++)
-            startClient(topVer, ++topVer);
-
-        cacheC = new IgniteClosure<String, CacheConfiguration[]>() {
-            @Override public CacheConfiguration[] apply(String nodeName) {
-                return null;
-            }
-        };
-
-        startServer(topVer, ++topVer);
-
-        checkAffinity(topVer, topVer(topVer, 0), true);
-
-        startServer(topVer, ++topVer);
-
-        checkAffinity(topVer, topVer(topVer, 0), false);
-
-        checkAffinity(topVer, topVer(topVer, 1), true);
-
-        stopNode(clients, ++topVer);
-
-        checkAffinity(clients + 1, topVer(topVer, 0), true);
-    }
-
     /**
      * @throws Exception If failed.
      */
     @Test
     public void testRandomOperations() throws Exception {
-        forceSrvMode = true;
-
         final int MAX_SRVS = 10;
         final int MAX_CLIENTS = 10;
         final int MAX_CACHES = 15;