This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 22f00613e32 Fix/flush cli output (#13344)
22f00613e32 is described below
commit 22f00613e327a03a743d815b4ab477927d4a45a3
Author: Christofer Dutz <[email protected]>
AuthorDate: Thu Aug 29 15:04:14 2024 +0200
Fix/flush cli output (#13344)
* fix: Hopefully fixed the build of the cpp-example on windows systems
* fix: Increase the timeout even more to finally make the build succeed.
* fix: Fix the build.
* fix: Added an explicit flush to the output so the output appears when
running in IntelliJ
---
.../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();
}
}