Commit d151dce
[KYUUBI #7290] Prevent engine session leak after Kyuubi session closed
### Why are the changes needed?
close #7290
When we close a kyuubi session, if the engine session(thrift client) has not initialized, then the kyuubi session will be closed, but the engine session might be alive, then will result in a resource leak.
### How was this patch tested?
Can be tested by when the engine pod is pending, and then kill the jdbc client, the driver pod should be killed after initialized.
### Was this patch authored or co-authored using generative AI tooling?
NO
Closes #7294 from ruanwenjun/dev_wenjun_fix7290.
Closes #7290
142a210 [ruanwenjun] make sure the client closed
9745206 [ruanwenjun] set shouldRetry to false
d3c8608 [ruanwenjun] remove unused comment
866126d [ruanwenjun] If the session already closed, then return
3b2ee39 [ruanwenjun] [KYUUBI #7290] Fix the engine session might still alive when kyuubi session has been closed
Authored-by: ruanwenjun <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
(cherry picked from commit 8bed9de)
Signed-off-by: Cheng Pan <[email protected]>1 parent d8a4059 commit d151dce
File tree
3 files changed
+17
-1
lines changed- kyuubi-common/src/main/scala/org/apache/kyuubi/session
- kyuubi-server/src/main/scala/org/apache/kyuubi/session
3 files changed
+17
-1
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
| |||
95 | 102 | | |
96 | 103 | | |
97 | 104 | | |
| 105 | + | |
98 | 106 | | |
99 | 107 | | |
| 108 | + | |
| 109 | + | |
100 | 110 | | |
101 | 111 | | |
102 | 112 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
| |||
210 | 214 | | |
211 | 215 | | |
212 | 216 | | |
213 | | - | |
| 217 | + | |
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
| |||
0 commit comments