This is an automated email from the ASF dual-hosted git repository.
xingtanzjr pushed a commit to branch guonengtest
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/guonengtest by this push:
new 1c9e462ce8 add error msg
1c9e462ce8 is described below
commit 1c9e462ce8ba80b4bfd11bf6aab477ccf38a0642
Author: Jinrui.Zhang <[email protected]>
AuthorDate: Wed Apr 19 14:27:20 2023 +0800
add error msg
---
example/session/src/main/java/org/apache/iotdb/ReadTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/example/session/src/main/java/org/apache/iotdb/ReadTest.java
b/example/session/src/main/java/org/apache/iotdb/ReadTest.java
index 33f285250e..90bed6b8cd 100644
--- a/example/session/src/main/java/org/apache/iotdb/ReadTest.java
+++ b/example/session/src/main/java/org/apache/iotdb/ReadTest.java
@@ -209,13 +209,13 @@ public class ReadTest {
long startTime = System.nanoTime();
executeQuery();
cost = System.nanoTime() - startTime;
- } catch (IoTDBConnectionException | StatementExecutionException
ignored) {
-
+ } catch (Throwable t) {
+ LOGGER.error("error when execute query.", t);
} finally {
try {
signal.finishReadAndWait(cost, i);
- } catch (InterruptedException ignored) {
-
+ } catch (InterruptedException e) {
+ LOGGER.error("error when finish signal.", e);
}
}
}