This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/dev/1.3 by this push:
new 02708ec102c [To dev/1.3] Fix illegal path exception message and don't
effect other exception handler. (#15575)
02708ec102c is described below
commit 02708ec102cfd7802cebb7f00ee0171c21014db1
Author: libo <[email protected]>
AuthorDate: Thu May 29 17:05:38 2025 +0800
[To dev/1.3] Fix illegal path exception message and don't effect other
exception handler. (#15575)
* Addresses an issue where the error log message is inaccurate when an
IllegalPathException occurs.
* Addresses an issue where the error log message is inaccurate when an
IllegalPathException occurs cause by a insert sql is executed.
A create sql is added in order to validate if the exception message is
legal when IllegalPathExeption occurs.
* format integration test code
* Stay consistent with master.
---
.../src/main/java/org/apache/iotdb/db/utils/ErrorHandlingUtils.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/ErrorHandlingUtils.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/ErrorHandlingUtils.java
index 430448a14d8..679288e7840 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/ErrorHandlingUtils.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/ErrorHandlingUtils.java
@@ -146,8 +146,6 @@ public class ErrorHandlingUtils {
TSStatusCode.QUERY_NOT_ALLOWED, INFO_NOT_ALLOWED_IN_BATCH_ERROR +
rootCause.getMessage());
} else if (t instanceof IoTDBException) {
return RpcUtils.getStatus(((IoTDBException) t).getErrorCode(),
rootCause.getMessage());
- } else if (t instanceof IoTDBRuntimeException) {
- return RpcUtils.getStatus(((IoTDBRuntimeException) t).getErrorCode(),
rootCause.getMessage());
} else if (t instanceof TsFileRuntimeException) {
return RpcUtils.getStatus(TSStatusCode.TSFILE_PROCESSOR_ERROR,
rootCause.getMessage());
} else if (t instanceof SemanticException) {
@@ -156,6 +154,8 @@ public class ErrorHandlingUtils {
((IoTDBException) t.getCause()).getErrorCode(),
rootCause.getMessage());
}
return RpcUtils.getStatus(TSStatusCode.SEMANTIC_ERROR,
rootCause.getMessage());
+ } else if (t instanceof IoTDBRuntimeException) {
+ return RpcUtils.getStatus(((IoTDBRuntimeException) t).getErrorCode(),
t.getMessage());
} else if (t instanceof ModelException) {
return RpcUtils.getStatus(((ModelException) t).getStatusCode(),
rootCause.getMessage());
} else if (t instanceof MemoryNotEnoughException) {