Skip to content

Support keep the session on client disconnected #5320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

zhaohehuhu
Copy link
Contributor

@zhaohehuhu zhaohehuhu commented Sep 21, 2023

Why are the changes needed?

close #3112

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

Was this patch authored or co-authored using generative AI tooling?

@zhaohehuhu
Copy link
Contributor Author

plz help review @pan3793

@pan3793
Copy link
Member

pan3793 commented Sep 21, 2023

Actually, this feature is more complicated than simple non-close.

the original purpose was to support session recovery on some network issues, we should consider the following things:

as both Kyuubi server and engine hold the session instances, if we decide to keep the session alive on the server side

  • how to ensure the re-created connection reaches the same Kyuubi server?
  • in which cases, we should close the session immediately, and in which cases not? unconditional retain session may lead the Kyuubi engine to occupy unreasonable resources

And how to handle the metrics? should we classify the unattached session into a dedicated group?

@zhaohehuhu
Copy link
Contributor Author

zhaohehuhu commented Sep 21, 2023

Thanks. I will improve it based on your suggestions.

@zhaohehuhu zhaohehuhu closed this Sep 25, 2023
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.

[FEATURE] Support keep the session on client disconnected
2 participants