This is an automated email from the ASF dual-hosted git repository.

tanxinyu pushed a commit to branch rc/1.3.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rc/1.3.3 by this push:
     new 5b8a822cca3 Rc/1.3.3 flush cli output (#13355)
5b8a822cca3 is described below

commit 5b8a822cca38e97e76065c665e7e29acc18d214d
Author: Christofer Dutz <[email protected]>
AuthorDate: Fri Aug 30 11:57:55 2024 +0200

    Rc/1.3.3 flush cli output (#13355)
---
 .../src/main/java/org/apache/iotdb/commons/ServerCommandLine.java       | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/ServerCommandLine.java
 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/ServerCommandLine.java
index 066e1893865..0ccc014965d 100644
--- 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/ServerCommandLine.java
+++ 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/ServerCommandLine.java
@@ -105,6 +105,8 @@ public abstract class ServerCommandLine {
       output.println("An error occurred while running the command: " + 
e.getMessage());
       // Forward the exit code from the exception to the calling process
       return e.getErrorCode();
+    } finally {
+      output.flush();
     }
   }
 

Reply via email to