Skip to content

Commit

Permalink
GG-29690 Deadlock in TCP worker fixed when Communication via Discover…
Browse files Browse the repository at this point in the history
…y is enabled. EnvironmentType setting replaced with a "forceClientToServerConnections" setting of TcpCommunicationSpi. (apache#1268)
  • Loading branch information
ibessonov committed Jun 30, 2020
1 parent 64acaa0 commit 18bde70
Show file tree
Hide file tree
Showing 15 changed files with 316 additions and 341 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
import org.apache.ignite.ShutdownPolicy;
import org.apache.ignite.internal.managers.eventstorage.GridEventStorageManager;
import org.apache.ignite.internal.processors.odbc.ClientListenerProcessor;
import org.apache.ignite.spi.tracing.TracingSpi;
import org.apache.ignite.internal.util.typedef.internal.A;
import org.apache.ignite.internal.util.typedef.internal.S;
import org.apache.ignite.internal.util.typedef.internal.U;
Expand Down Expand Up @@ -84,6 +83,7 @@
import org.apache.ignite.spi.loadbalancing.LoadBalancingSpi;
import org.apache.ignite.spi.loadbalancing.roundrobin.RoundRobinLoadBalancingSpi;
import org.apache.ignite.spi.metric.MetricExporterSpi;
import org.apache.ignite.spi.tracing.TracingSpi;
import org.apache.ignite.ssl.SslContextFactory;
import org.jetbrains.annotations.Nullable;

Expand Down Expand Up @@ -297,9 +297,6 @@ public class IgniteConfiguration {
@Deprecated
public static final boolean DFLT_SQL_QUERY_OFFLOADING_ENABLED = SqlConfiguration.DFLT_SQL_QUERY_OFFLOADING_ENABLED;

/** Default value of environment type is {@link EnvironmentType#STANDALONE}. */
private static final EnvironmentType DFLT_ENV_TYPE = EnvironmentType.STANDALONE;

/** Optional local Ignite instance name. */
private String igniteInstanceName;

Expand Down Expand Up @@ -611,10 +608,6 @@ public class IgniteConfiguration {
/** Communication failure resolver */
private CommunicationFailureResolver commFailureRslvr;

/** Environment type - hint to Ignite that it is started in a specific environment and should adapt
* its behavior and algorithms to specific properties. */
private EnvironmentType envType = DFLT_ENV_TYPE;

/** Plugin providers. */
private PluginProvider[] pluginProvs;

Expand Down Expand Up @@ -746,7 +739,6 @@ public IgniteConfiguration(IgniteConfiguration cfg) {
utilityCachePoolSize = cfg.getUtilityCacheThreadPoolSize();
waitForSegOnStart = cfg.isWaitForSegmentOnStart();
warmupClos = cfg.getWarmupClosure();
envType = cfg.getEnvironmentType();
sqlCfg = cfg.getSqlConfiguration();
shutdown = cfg.getShutdownPolicy();
}
Expand Down Expand Up @@ -3674,35 +3666,6 @@ public IgniteConfiguration setSqlOffloadingEnabled(boolean offloadingEnabled) {
return this;
}

/**
* <b>This is an experimental feature. Envronment awareness approac may be changed.</b>
* <p>
*
* Configured environment type.
*
* @return {@link EnvironmentType environment type}.
*/
@IgniteExperimental
public EnvironmentType getEnvironmentType() {
return envType;
}

/**
* <b>This is an experimental feature. Envronment awareness approac may be changed.</b>
* <p>
*
* Sets environment type hint.
*
* @param environmentType Environment type value.
* @return {@code this} for chaining.
*/
@IgniteExperimental
public IgniteConfiguration setEnvironmentType(EnvironmentType environmentType) {
this.envType = environmentType;

return this;
}

/**
* Gets plugin providers.
*
Expand Down

0 comments on commit 18bde70

Please sign in to comment.