Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KYUUBI #6204] Fix kyuubi session limiter leak when opening session f…
…ailed # 🔍 Description ## Issue References 🔗 This pull request fixes # ## Describe Your Solution 🔧 We found that, a user has no active sessions, but kyuubi said that the user reach the max limit sessions per user. Now, we increase the session limiter for user when opening session and decrease it when closing session. But if the user open session failed, it will not decrease the session limiter. This pr fix session limiter leak issue when failed to open session. Before open session, add session handle into sessionHandleMap, and invoke SessionManager::closeSession when failed to open session. ## Types of changes 🔖 - [ ] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 #### Behavior Without This Pull Request ⚰️ #### Behavior With This Pull Request 🎉 #### Related Unit Tests --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #6204 from turboFei/limiter_leak. Closes #6204 c0f2969 [Wang, Fei] refine 98fda94 [Wang, Fei] fix leak Authored-by: Wang, Fei <[email protected]> Signed-off-by: Wang, Fei <[email protected]>
- Loading branch information