treeder / simplejpa

Automatically exported from code.google.com/p/simplejpa
0 stars 0 forks source link

S3 errors under load #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
During concurrent access of SimpleJPA persisted entities which use @Lob fields, 
S3 returns the 
following error message:

"A conflicting conditional operation is currently in progress against this 
resource."

According to this thread in the Jets3t forums...

http://groups.google.com/group/jets3t-users/browse_thread/thread/ca458ecc17f9a89
4

...the error is related to the "createBucket()" call, which should be replaced 
with a call to 
"getOrCreateBucket()" instead.  Unfortunately, the latter has only recently 
been added, and will 
not be available until post 0.6.1.

I wanted to open this issue to track the need to upgrade to a newer version of 
Jets3t when one 
becomes available.

Original issue reported on code.google.com by craigwblake@gmail.com on 3 Jan 2009 at 10:58

GoogleCodeExporter commented 9 years ago
This patch is based on the workaround listed in the referenced thread.  It 
seems to reduce the occurrence of this 
exception in my testing.

Once a new version of Jets3t is available this patch can be changed to use the 
getOrCreateBucket() call.

Original comment by craigwblake@gmail.com on 19 Jan 2009 at 11:25

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed. Only calls createBucket once per entitymanagerfactory now (and then, 
only if 
bucket was not found on startup).

Original comment by treeder on 19 Mar 2009 at 7:13