MrHappyEnding opened a new pull request, #58110:
URL: https://github.com/apache/spark/pull/58110

   ### What changes were proposed in this pull request?
   
   Close FileSystem instances cached for the fresh Hadoop UGI after obtaining 
delegation tokens. The cleanup is shared by both one-time token acquisition and 
scheduled renewal, and runs in a `finally` block.
   
   A regression test was added to verify that FileSystem instances created 
during renewal are closed.
   
   ### Why are the changes needed?
   
   Each renewal creates a fresh UGI. FileSystem instances cached for that UGI 
were not closed by the renewal path, causing the Hadoop FileSystem cache to 
grow after every renewal.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Ran:
   
       build/sbt 'core/testOnly *HadoopDelegationTokenManagerSuite -- -z 
"SPARK-58438"'
       build/sbt 'core/testOnly *HadoopDelegationTokenManagerSuite'
       dev/lint-scala
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: 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