You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by GitBox <gi...@apache.org> on 2021/05/20 04:33:16 UTC

[GitHub] [zeppelin] cuspymd commented on a change in pull request #4122: [ZEPPELIN-5379] LIST_CONFIGURATIONS command cannot return the default…

cuspymd commented on a change in pull request #4122:
URL: https://github.com/apache/zeppelin/pull/4122#discussion_r635757279



##########
File path: zeppelin-interpreter/src/main/java/org/apache/zeppelin/conf/ZeppelinConfiguration.java
##########
@@ -871,6 +871,10 @@ public boolean isPrometheusMetricEnabled() {
         completeConfiguration.put(c.getVarName(), sysConfig.getString(c.getVarName()));
       } else if (envConfig.containsKey(c.name())) {
         completeConfiguration.put(c.getVarName(), envConfig.getString(c.name()));
+      }else {
+        if (getString(c)!=null){
+          completeConfiguration.put(c.getVarName(),getString(c));
+        }

Review comment:
       Since `envConfig` and `sysConfig` are checked in `getString()`, would it be okay to delete lines 870~873?
   
   However, it seems that the check order of `envConfig` and `sysConfig` is different only in `getCompleteConfiguration()`.
   @zjffdu @Reamer  Which of `envConfig` and `sysConfig` takes precedence?




-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org