CRZbulabula commented on code in PR #16889:
URL: https://github.com/apache/iotdb/pull/16889#discussion_r2602933355


##########
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/file/SystemPropertiesHandler.java:
##########
@@ -185,8 +185,8 @@ private void replaceFormalFile() throws IOException {
       throw new IOException(msg);
     }
     try {
-      FileUtils.move(tmpFile.toPath(), formalFile.toPath());
-    } catch (IOException e) {
+      FileUtils.moveFileSafe(tmpFile, formalFile);
+    } catch (Exception e) {

Review Comment:
   Should catch the corresponding exception rather than `Exception`.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to