Commit 460fe54
committed
[KYUUBI #XXXX] Do not block server shutdown on batch sessions
Batch sessions are handles to jobs submitted to external clusters
(YARN/K8s). The actual computation runs on the cluster and continues
regardless of Kyuubi server state. Including batch sessions in the
shutdown wait loop caused the server to hang indefinitely when long-
running batch jobs were active.
Introduces `closeOnServerStop` on the Session trait (default: true,
backward-compatible). KyuubiBatchSession overrides it to false.
ServiceDiscovery.stopGracefully now waits only for sessions where
closeOnServerStop is true.1 parent aa58942 commit 460fe54
3 files changed
Lines changed: 10 additions & 4 deletions
File tree
- kyuubi-common/src/main/scala/org/apache/kyuubi/session
- kyuubi-ha/src/main/scala/org/apache/kyuubi/ha/client
- kyuubi-server/src/main/scala/org/apache/kyuubi/session
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
232 | 234 | | |
0 commit comments