Skip to content
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

Feature: refactor the service broker to the CF SB API v2.4 #19

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Feature: refactor the service broker to the CF SB API v2.4 #19

wants to merge 19 commits into from

Conversation

djvdorp
Copy link
Member

@djvdorp djvdorp commented Feb 9, 2016

No description provided.

pommi and others added 19 commits September 8, 2015 15:22
To fix:
> No qualifying bean of type [org.cloudfoundry.community.servicebroker.s3.plan.Plan]
> is defined: expected single matching bean but found 2: sharedPlan,basicPlan
NOTE: the tests are now failing because the BasicPlan tries to create the same user in parallel.
…maven manifest

So we can trace back from which commit a jar was built.
S3Object opens a connection for each object.
These connections are not liberated even if the object is garbage collected,
so it is needed to execute either use Try-with-resources (preferred)
or manually call object.close() in order to liberate the connection to the pool.
Failing to do so will result in AmazonClientException: ConnectionPoolTimeoutException.

More information can be found here:
- http://stackoverflow.com/questions/17782937/connectionpooltimeoutexception-when-iterating-objects-in-s3
- https://forums.aws.amazon.com/message.jspa?messageID=471149
- https://java.awsblog.com/post/Tx22D24MCRWFR9U/Closeable-S3Objects
- http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/model/S3Object.html
This is done to ensure that the Javadoc on S3.getObject(GetObjectRequest
getObjectRequest) is read, and also because it's more consistent with
the rest of the codebase.
…eption

fix for S3Object ConnectionPoolTimeoutException
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.

3 participants