Skip to content

Gracefully shutting down the AmazonsS3 ExecutorService#46

Open
bluesockets wants to merge 1 commit intodwhjames:masterfrom
bluesockets:s3_client_graceful_shutdown
Open

Gracefully shutting down the AmazonsS3 ExecutorService#46
bluesockets wants to merge 1 commit intodwhjames:masterfrom
bluesockets:s3_client_graceful_shutdown

Conversation

@bluesockets
Copy link

Hello.
Here is a PR that will gracefully shuts down the S3 ExecutorService. Currently the shutdown() method issues a shutdownNow() that interrupts the com.amazonaws.http.IdleConnectionReaper causing it to throw an java.lang.InterruptedException. Issuing a shutdown() with a 30 second timeout gets rid of the exception, and allows some time for the client to spin down.

Thanks for your work on aws-wrap

@alexmnyc
Copy link

alexmnyc commented Feb 8, 2016

@dwhjames this looks good. Can someone please merge?

@malcolmgreaves
Copy link

Is this still actively maintained? @dwhjames

@mingchuno
Copy link

@bluesockets
I have fork and merged your PR. I have also publish it under version 0.9.0
https://github.com/mingchuno/aws-wrap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants