Skip to content

Commit

Permalink
IGNITE-23992 Remove setForceServerMode from GridCacheRebalancingOrder…
Browse files Browse the repository at this point in the history
…ingTest (#11741)
  • Loading branch information
nizhikov authored Dec 16, 2024
1 parent 789ef9f commit c1f6dc4
Showing 1 changed file with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
import org.apache.ignite.services.Service;
import org.apache.ignite.services.ServiceConfiguration;
import org.apache.ignite.services.ServiceContext;
import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi;
import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
import org.junit.Ignore;
import org.junit.Test;
Expand Down Expand Up @@ -119,12 +118,7 @@ public class GridCacheRebalancingOrderingTest extends GridCommonAbstractTest {
@Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);

if (isFirstGrid(igniteInstanceName)) {
assert cfg.getDiscoverySpi() instanceof TcpDiscoverySpi : cfg.getDiscoverySpi();

((TcpDiscoverySpi)cfg.getDiscoverySpi()).setForceServerMode(true);
}
else
if (!isFirstGrid(igniteInstanceName))
cfg.setServiceConfiguration(getServiceConfiguration());

cfg.setCacheConfiguration(getCacheConfiguration());
Expand Down Expand Up @@ -165,11 +159,6 @@ protected CacheConfiguration<IntegerKey, Integer> getCacheConfiguration() {
return cfg;
}

/** {@inheritDoc} */
@Override protected boolean isMultiJvm() {
return true;
}

/** {@inheritDoc} */
@Override protected long getTestTimeout() {
return 1000 * 60 * 5;
Expand Down Expand Up @@ -271,10 +260,10 @@ private ServerStarter startServers() throws Exception {
*/
@Test
public void testEvents() throws Exception {
Ignite ignite = startClientGrid(0);

ServerStarter srvStarter = startServers();

Ignite ignite = startClientGrid(0);

IgniteCache<IntegerKey, Integer> cache = ignite.cache(TEST_CACHE_NAME);

// Generate a key per partition.
Expand Down

0 comments on commit c1f6dc4

Please sign in to comment.