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:09 UTC
[incubator-iotdb] branch fix_tmpProperties created (now ceb62eb)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a change to branch fix_tmpProperties
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git.
at ceb62eb fix check properties
This branch includes the following new commits:
new ceb62eb fix check properties
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-iotdb] 01/01: fix check properties
Posted by ha...@apache.org.
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)) {