-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HADOOP-18397. Shutdown AWSSecurityTokenService when its resources are no longer in use #4722
Conversation
…e no longer in use
Tested against endpoint
|
back when we did that the sts client shutdown just threw UnsupportedOperationException. is that no longer the case? if so, we should stop swallowing it in our STSClient |
That is true, we no longer need to catch
We are good here. Just ran all the tests against new commit. Sharing the test results in the next comment. |
Tested the new commit changes against endpoint
|
🎊 +1 overall
This message was automatically generated. |
Re-ran all the tests with
All tests in With |
unbuffer underflow, but the read() apis used are needed for coverage. don't worry too much there |
get an m1 MBP; cuts test time in half. doesn't do much for shading the client api's though, so it must be better parallelism than single core throughput. the scale tests test big multipart uploads and a real terasort, so are important. i like to run them at least weekly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
… no longer in use (#4722) Contributed by Viraj Jasani.
merged to branch-3.3. too. thanks |
Awesome, in fact I am just about to get m1 MBP!
Nice, i will also run them weekly then, thanks for sharing @steveloughran ! |
… no longer in use (apache#4722) Contributed by Viraj Jasani.
Description of PR
AWSSecurityTokenService resources can be released whenever they are no longer in use. The documentation of AWSSecurityTokenService#shutdown says while it is not important for client to compulsorily shutdown the token service, client can definitely perform early release whenever client no longer requires token service resources. We achieve this by making STSClient closable, so we can certainly utilize it in all places where it's suitable.