You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/08/19 05:47:32 UTC

[GitHub] [iotdb] xingtanzjr commented on a diff in pull request #7040: [IOTDB-4158] Extend the search of configuration of metric module.

xingtanzjr commented on code in PR #7040:
URL: https://github.com/apache/iotdb/pull/7040#discussion_r949820886


##########
metrics/interface/src/main/java/org/apache/iotdb/metrics/config/MetricConfigDescriptor.java:
##########
@@ -104,9 +104,23 @@ public ReloadLevel loadHotProps() {
   private String getPropsUrl() {
     // first, try to get conf folder of standalone iotdb or datanode
     String url = System.getProperty(MetricConstant.IOTDB_CONF, null);
+    if (url == null) {
+      // try to get conf folder from IOTDB_HOME
+      url = System.getProperty(MetricConstant.IOTDB_HOME, null);
+      if (url != null) {
+        url += File.separator + "conf";
+      }
+    }
     // second, try to get conf folder of datanode

Review Comment:
   datanode ?



-- 
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: reviews-unsubscribe@iotdb.apache.org

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