XJDKC opened a new pull request, #15818:
URL: https://github.com/apache/iceberg/pull/15818

   ## Summary
   
   `RESTSigV4AuthSession` holds an `AwsCredentialsProvider` obtained from 
`AwsProperties.restCredentialsProvider()`, which may be `AutoCloseable` (e.g. 
`DefaultCredentialsProvider`, StsCredentialsProvider). Previously, `close()` 
only closed the delegate `AuthSession` but never closed the credentials 
provider, causing a resource leak.
   
   This PR uses a `CloseableGroup` to manage both the delegate and the 
credentials provider (when it implements `AutoCloseable`), ensuring both are 
properly closed. Close failures are suppressed so that one failing resource 
doesn't prevent the other from being closed.


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