Skip to content

Commit

Permalink
[KYUUBI #4010] Print stack trace in KyuubiOperation#onError method
Browse files Browse the repository at this point in the history
### _Why are the changes needed?_

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #4010 from cxzl25/onError_trace.

Closes #4010

411bc72 [sychen] print stack trace in onError method

Authored-by: sychen <sychen@ctrip.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
  • Loading branch information
cxzl25 authored and pan3793 committed Dec 19, 2022
1 parent 6e5803c commit 6cd8a36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ abstract class KyuubiOperation(session: Session) extends AbstractOperation(sessi
case e: Throwable =>
state.synchronized {
if (isTerminalState(state)) {
warn(s"Ignore exception in terminal state with $statementId: $e")
warn(s"Ignore exception in terminal state with $statementId", e)
} else {
val errorType = e.getClass.getSimpleName
MetricsSystem.tracing(_.incCount(
Expand Down

0 comments on commit 6cd8a36

Please sign in to comment.