Skip to content

Conversation

@turboFei
Copy link
Member

@turboFei turboFei commented May 5, 2023

Why are the changes needed?

Log the session exception when handling it, otherwise, we can only lookup it from events.

image

For example, if the exception thrown by engine.getOrCreate(discoveryClient, extraEngineLog), now there is no log for that.

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 locally before make a pull request

@turboFei turboFei requested a review from pan3793 May 5, 2023 02:01
@turboFei turboFei self-assigned this May 5, 2023
@turboFei turboFei added this to the v1.7.1 milestone May 5, 2023
@turboFei turboFei force-pushed the log_session_error branch from 20dbeb9 to aaa5da9 Compare May 5, 2023 02:03
@turboFei turboFei changed the title Log session exception when handling session exception Log error when handling session exception May 5, 2023
f
} catch {
case t: Throwable =>
error(s"Handling $user session[$handle] exception:", t)
Copy link
Member

@pan3793 pan3793 May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for exceptions that will be re-thrown, seems no need to print stacktrace here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, I see

@turboFei turboFei closed this May 5, 2023
@turboFei turboFei deleted the log_session_error branch May 5, 2023 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants