JackieTien97 opened a new pull request, #19281:
URL: https://github.com/apache/iotdb/pull/19281

   Cherry-pick #19280 (merged commit e986397f6a7bb33cffd81839654e012d8babfc0c) 
from dev/1.3 onto master, based on e78f7366134e7f3cbedb463c3f5e9ebb26ba021c.
   
   REST v1 and v2 currently log WARN stack traces for expected query failures. 
Share the query logging policy from ErrorHandlingUtils with both handlers. For 
example, a ParseCancellationException("invalid SQL") still returns 
SQL_PARSE_ERROR and the same message, but now produces INFO without a stack 
trace. STORAGE_ENGINE_NOT_READY remains silent, while unexpected failures 
retain WARN stack traces.
   
   Adapt the handlers and parameterized tests to master's 
external-service-impl/rest module and current exception packages. Preserve 
master's complete expected-error classification (including LBAC, table/column, 
and metadata lease errors) and existing localized message template. The 
regression tests also cover master-specific status codes.
   
   Validation with JDK 17:
   - `mvn clean test -pl external-service-impl/rest -am 
-Dtest=ExceptionHandlerTest,ErrorHandlingUtilsTest 
-Dsurefire.failIfNoSpecifiedTests=false -DfailIfNoTests=false`: passed, 12 
tests, no failures/errors/skips.
   - `mvn test-compile -DskipTests`: passed.
   - `mvn test-compile -DskipTests -P with-zh-locale`: passed.
   - Spotless and `git diff --check`: passed.
   
   


-- 
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]

Reply via email to