hit-lacus commented on code in PR #1994:
URL: https://github.com/apache/kylin/pull/1994#discussion_r992109061


##########
core-common/src/main/java/org/apache/kylin/common/KylinConfig.java:
##########
@@ -65,7 +65,7 @@ public class KylinConfig extends KylinConfigBase {
     public static final String KYLIN_CONF = "KYLIN_CONF";
 
     // static cached instances
-    private static KylinConfig SYS_ENV_INSTANCE = null;
+    private static volatile KylinConfig SYS_ENV_INSTANCE = null;

Review Comment:
   Why need add `volatile` here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to