private void writeWithoutLock(Properties properties, File file) throws IOException {
    try (FileOutputStream fileOutputStream = new FileOutputStream(file);
        Writer writer = new OutputStreamWriter(fileOutputStream, StandardCharsets.UTF_8)) {
      properties.store(writer, "");
      fileOutputStream.getFD().sync();
    }
  }
Put key and value into properties

@param keyOrValue [key0, value0, key1, value1, ... ]
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/file/SystemPropertiesHandler.java