ericpai commented on a change in pull request #4571:
URL: https://github.com/apache/iotdb/pull/4571#discussion_r769425505
##########
File path:
server/src/main/java/org/apache/iotdb/db/utils/ErrorHandlingUtils.java
##########
@@ -106,6 +107,9 @@ public static TSStatus tryCatchQueryException(Exception e) {
} else if (e instanceof IoTDBException && !(e instanceof
StorageGroupNotReadyException)) {
DETAILED_FAILURE_QUERY_TRACE_LOGGER.warn(INFO_QUERY_PROCESS_ERROR, e);
return RpcUtils.getStatus(((IoTDBException) e).getErrorCode(),
getRootCause(e));
+ } else if (e instanceof TsFileRuntimeException) {
+ DETAILED_FAILURE_QUERY_TRACE_LOGGER.warn(INFO_QUERY_PROCESS_ERROR, e);
Review comment:
If an aggregation result query throws an UnSupportedException, we should
return a proper error code instead of 500.
--
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]