wangzhigang1999 commented on PR #7803:
URL: https://github.com/apache/kyuubi/pull/7803#issuecomment-6463945163

   Validated `0ca9034e` on a Kubernetes test cluster with JDBC clients in two 
Pods using distinct source IPs. This fixes a reproducible quota leak.
   
   - With per-user/IP/user+IP limits of `5/1/10`, the pre-patch limiter 
exhausted the user's quota after repeated IP-limit rejections, even when 
connecting from the other Pod. With this patch, all 10 attempts were rejected 
by the IP limit, and the user could connect from the other Pod and execute SQL. 
Reconnecting from the original Pod also worked after releasing the occupied 
slot.
   - With limits of `2/10/2`, the pre-patch limiter left the user+IP quota 
exhausted after user-limit rejections. With this patch, releasing one existing 
connection allowed a new connection from the other Pod; the remaining 
connection could still execute SQL.
   - The user+IP limit itself still rejected excess connections and allowed 
reconnection after close.
   
   For the comparison, I used the same server runtime with only the pre-patch 
limiter classes substituted, and checked artifact hashes and JVM class-loading 
sources. `SessionLimiterSuite` also passed all 7 tests; its new regression test 
failed with the pre-patch implementation.
   
   The cluster checks used Spark 3.5.8 in `local[1]` mode and covered 
interactive JDBC sessions, not batch submissions or distributed Spark execution.
   
   Assisted-by: OpenAI Codex
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to