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

ilyak 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 068b1dc  IGNITE-12842 Cache IGNITE_DAEMON system property lookup - 
Fixes #7579.
068b1dc is described below

commit 068b1dc78b1655b6d855873329532c0a590080b6
Author: Sunny Chan <git...@sunnychan.hk>
AuthorDate: Tue Mar 31 20:01:07 2020 +0300

    IGNITE-12842 Cache IGNITE_DAEMON system property lookup - Fixes #7579.
    
    Signed-off-by: Ilya Kasnacheev <ilya.kasnach...@gmail.com>
---
 .../main/java/org/apache/ignite/internal/GridKernalContextImpl.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/GridKernalContextImpl.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/GridKernalContextImpl.java
index 7196dea..add1749 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/GridKernalContextImpl.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/GridKernalContextImpl.java
@@ -111,7 +111,6 @@ import org.apache.ignite.plugin.PluginProvider;
 import org.apache.ignite.thread.IgniteStripedThreadPoolExecutor;
 import org.jetbrains.annotations.Nullable;
 
-import static org.apache.ignite.IgniteSystemProperties.IGNITE_DAEMON;
 import static org.apache.ignite.internal.IgniteComponentType.SPRING;
 
 /**
@@ -469,6 +468,9 @@ public class GridKernalContextImpl implements 
GridKernalContext, Externalizable
     /** Recovery mode flag. Flag is set to {@code false} when discovery 
manager started. */
     private boolean recoveryMode = true;
 
+    /** */
+    private final boolean igniteDaemon = 
IgniteSystemProperties.getBoolean(IgniteSystemProperties.IGNITE_DAEMON);
+
     /**
      * No-arg constructor is required by externalization.
      */
@@ -1052,7 +1054,7 @@ public class GridKernalContextImpl implements 
GridKernalContext, Externalizable
         ClusterNode locNode0 = localNode();
 
         return locNode0 != null ? locNode0.isDaemon() :
-            (config().isDaemon() || 
IgniteSystemProperties.getBoolean(IGNITE_DAEMON));
+            (config().isDaemon() || igniteDaemon);
     }
 
     /** {@inheritDoc} */

Reply via email to