Commit 73a1af1
[KYUUBI #7407] STGroup free to avoid OOM Kill
### Why are the changes needed?
When LDAP Authentication is used ST Token is created and saved in the cache, but it is never freed up.
This is causing continuous increase in heap usage, eventually causing out-of-memory for kyuubi server pods.
This changes is added to clear ST Tokens. Also ST Group is added to avoid any race condition during clean up.
### How was this patch tested?
This patch was tested in our customer environment. We observed there's no more continuous heap increase after the fix.
### Was this patch authored or co-authored using generative AI tooling?
Cursor auto-complete feature was used.
Closes #7408 from oh0873/hoonoh/STTokenCleanups.
Closes #7407
72740e0 [Hoon Oh] Update kyuubi-common/src/main/scala/org/apache/kyuubi/service/authentication/ldap/Query.scala
18ee9bb [Hoon Oh] Added () to createFilter and render
dd0f910 [Hoon Oh] Explicit group definition
321c430 [Hoon Oh] Update kyuubi-common/src/main/scala/org/apache/kyuubi/service/authentication/ldap/Query.scala
28cadbc [Hoon Oh] STGroup free to avoid OOM Kill
Lead-authored-by: Hoon Oh <hoonoh@geico.com>
Co-authored-by: Hoon Oh <92890928+oh0873@users.noreply.github.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>1 parent c6b01db commit 73a1af1
1 file changed
Lines changed: 14 additions & 4 deletions
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
| |||
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
59 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
| |||
112 | 120 | | |
113 | 121 | | |
114 | 122 | | |
115 | | - | |
| 123 | + | |
116 | 124 | | |
117 | 125 | | |
118 | 126 | | |
| |||
126 | 134 | | |
127 | 135 | | |
128 | 136 | | |
129 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
130 | 140 | | |
131 | 141 | | |
132 | 142 | | |
| |||
0 commit comments