nileshrathi345 opened a new pull request, #536:
URL: https://github.com/apache/livy/pull/536

   
   ## What changes were proposed in this pull request?
   
   Reuse the existing `KubernetesClient` during service account token refresh 
instead of
   recreating `DefaultKubernetesClient` every 5 minutes without closing the old 
client.
   
   JIRA: https://issues.apache.org/jira/browse/LIVY-1063
   
   ## How was this patch tested?
   
   - Existing unit tests: `mvn -pl server -am -DskipITs test`
   - Manual review: refresh loop only calls `config.setOauthToken()`; no new 
client creation
   - Manual testing: deployed on Kubernetes with in-cluster SA auth;
     verified "Refreshed Kubernetes service account token." logs every ~5 
minutes and
     native/HTTP client thread count remains stable over several refresh cycles
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   No
   


-- 
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]

Reply via email to