-
Notifications
You must be signed in to change notification settings - Fork 985
[KYUUBI #7290] Prevent engine session leak after Kyuubi session closed #7294
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
Changes from 1 commit
3b2ee39
866126d
d3c8608
9745206
142a210
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -180,6 +180,11 @@ class KyuubiSessionImpl( | |
| _engineSessionHandle = | ||
| engineClient.openSession(protocol, user, passwd, openEngineSessionConf) | ||
| _client = engineClient | ||
| // Since the _client might be null when we close session | ||
| // so we need to check isClosed here | ||
ruanwenjun marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| if (isClosed) { | ||
| throw KyuubiSQLException(s"KyuubiSession $handle has been closed") | ||
ruanwenjun marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
Comment on lines
183
to
186
|
||
| logSessionInfo(s"Connected to engine [$host:$port]/[${client.engineId.getOrElse("")}]" + | ||
| s" with ${_engineSessionHandle}]") | ||
| shouldRetry = false | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.