You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2020/07/13 13:19:10 UTC
[incubator-iotdb] 01/01: fix check properties
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch fix_tmpProperties
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
commit ceb62ebcd044cda39e7575e1f7d1357e7f751602
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Jul 13 21:18:27 2020 +0800
fix check properties
---
server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfigCheck.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfigCheck.java b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfigCheck.java
index 2f7e2c8..ccbe74f 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfigCheck.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfigCheck.java
@@ -181,8 +181,10 @@ public class IoTDBConfigCheck {
}
// no tmp file, read properties from system.properties
- try (FileInputStream inputStream = new FileInputStream(propertiesFile)) {
- properties.load(new InputStreamReader(inputStream, TSFileConfig.STRING_CHARSET));
+ try (FileInputStream inputStream = new FileInputStream(propertiesFile);
+ InputStreamReader inputStreamReader = new InputStreamReader(
+ inputStream, TSFileConfig.STRING_CHARSET)) {
+ properties.load(inputStreamReader);
}
// need to upgrade from 0.9 to 0.10
if (!properties.containsKey(IOTDB_VERSION_STRING)) {