[
https://issues.apache.org/jira/browse/WHIRR-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084583#comment-13084583
]
Adrian Cole commented on WHIRR-349:
-----------------------------------
note with WHIRR-361 applied, logging of this problem works correctly (ex. the
warning isn't via a j.u.l.Logger, rather SLF4J)
2011-08-13 11:11:25,476 INFO [org.apache.whirr.util.BlobCache] (main) Created
blob cache container 'xeyhzrbvvfre' located in '[id=EU, scope=REGION,
description=EU, parent=aws-s3, iso3166Codes=[IE], metadata={}]'
2011-08-13 11:11:31,093 INFO [org.apache.whirr.util.BlobCache] (main)
Uploading 'whirr691749320713679426.txt' to 'xeyhzrbvvfre' blob cache.
2011-08-13 11:12:07,534 INFO [org.apache.whirr.util.integration.BlobCacheTest]
(main) (mkdir -p /tmp && cd /tmp && [ ! -f whirr691749320713679426.txt ] &&
curl -C - -s -q -L --connect-timeout 10 --max-time 600 -X GET -s --retry 20 -H
"Host: xeyhzrbvvfre.s3.amazonaws.com" -H "Date: Sat, 13 Aug 2011 10:11:09 GMT"
-H "Authorization: AWS 067PW7Z9P0FNH7JDPE82:ROKDCwDiXqXEuG6FgjHxkHyC4t0="
https://xeyhzrbvvfre.s3.amazonaws.com/whirr691749320713679426.txt
>whirr691749320713679426.txt)
2011-08-13 11:12:07,552 INFO [org.apache.whirr.util.BlobCache] (main) Removing
blob cache 'xeyhzrbvvfre'
2011-08-13 11:12:34,789 INFO [org.apache.whirr.util.BlobCache] (main) Created
blob cache container 'cpqbe3pmzal8' located in '[id=EU, scope=REGION,
description=EU, parent=aws-s3, iso3166Codes=[IE], metadata={}]'
2011-08-13 11:12:37,701 INFO [org.apache.whirr.util.BlobCache] (main)
Uploading 'whirr3766638371999818973.txt' to 'cpqbe3pmzal8' blob cache.
2011-08-13 11:13:05,662 WARN
[org.jclouds.http.handlers.BackoffLimitedRetryHandler] (i/o thread 0) Cannot
retry after server error, command has exceeded retry limit 5:
[method=AWSS3AsyncClient.putObject, request=PUT
https://cpqbe3pmzal8.s3.amazonaws.com/whirr3766638371999818973.txt HTTP/1.1]
2011-08-13 11:13:05,697 INFO [org.apache.whirr.util.BlobCache] (main) Removing
blob cache 'cpqbe3pmzal8'
2011-08-13 11:13:12,777 INFO [org.apache.whirr.util.integration.BlobCacheTest]
(main) Created temporary container 'ntiayrnslawy'
2011-08-13 11:13:13,178 INFO [org.apache.whirr.util.integration.BlobCacheTest]
(main) Removing temporary container 'ntiayrnslawy'
> Retry if blobstore put fails
> ----------------------------
>
> Key: WHIRR-349
> URL: https://issues.apache.org/jira/browse/WHIRR-349
> Project: Whirr
> Issue Type: Improvement
> Components: core
> Affects Versions: 0.6.0
> Environment: Ubuntu 11.04
> java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
> (using https://github.com/bdumon/whirr 13cd70e which uses a jclouds
> 1.1.0-SNAPSHOT)
> Reporter: Karel Vervaeke
> Assignee: Karel Vervaeke
> Priority: Minor
> Fix For: 0.6.0
>
> Attachments: WHIRR-349.patch, WHIRR-349.patch, failcase.zip
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> When the blobstore fails to upload a file, it might be worth retrying a
> couple of times rather than just aborting
> the whole process.
> OTOH, the failure would occur *before* any machines are launched, so the loss
> is limited.
> Here's an example stacktrace of a failed upload:
> Created blob cache container 'fr6mxqa4d6aa' located in '[id=EU, scope=REGION,
> description=EU, parent=aws-s3, iso3166Codes=[IE], metadata={}]'
> Uploading 'mydecorator-1.0-SNAPSHOT.tar.gz' to 'fr6mxqa4d6aa' blob cache.
> Jul 29, 2011 8:53:50 AM org.jclouds.logging.jdk.JDKLogger logWarn
> WARNING: Cannot retry after server error, command is not replayable:
> [method=AWSS3AsyncClient.putObject, request=PUT
> https://fr6mxqa4d6aa.s3.amazonaws.com/mydecorator-1.0-SNAPSHOT.tar.gz
> HTTP/1.1]
> Exception in thread "main" org.jclouds.http.HttpResponseException: error
> after writing 335872/637480 bytes to PUT
> https://fr6mxqa4d6aa.s3.amazonaws.com/mydecorator-1.0-SNAPSHOT.tar.gz
> HTTP/1.1 connecting to PUT
> https://fr6mxqa4d6aa.s3.amazonaws.com/mydecorator-1.0-SNAPSHOT.tar.gz HTTP/1.1
> at
> org.jclouds.http.internal.BaseHttpCommandExecutorService$HttpResponseCallable.call(BaseHttpCommandExecutorService.java:183)
> at
> org.jclouds.http.internal.BaseHttpCommandExecutorService$HttpResponseCallable.call(BaseHttpCommandExecutorService.java:134)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:679)
> Caused by: java.lang.RuntimeException: error after writing 335872/637480
> bytes to PUT
> https://fr6mxqa4d6aa.s3.amazonaws.com/mydecorator-1.0-SNAPSHOT.tar.gz HTTP/1.1
> at
> org.jclouds.http.internal.JavaUrlHttpCommandExecutorService.convert(JavaUrlHttpCommandExecutorService.java:245)
> at
> org.jclouds.http.internal.JavaUrlHttpCommandExecutorService.convert(JavaUrlHttpCommandExecutorService.java:77)
> at
> org.jclouds.http.internal.BaseHttpCommandExecutorService$HttpResponseCallable.call(BaseHttpCommandExecutorService.java:156)
> ... 6 more
> Caused by: java.io.IOException: Error writing request body to server
> at
> sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkError(HttpURLConnection.java:2716)
> at
> sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write(HttpURLConnection.java:2699)
> at
> com.google.common.io.CountingOutputStream.write(CountingOutputStream.java:51)
> at com.google.common.io.ByteStreams.copy(ByteStreams.java:172)
> at org.jclouds.io.payloads.BasePayload.writeTo(BasePayload.java:67)
> at
> org.jclouds.http.internal.JavaUrlHttpCommandExecutorService.convert(JavaUrlHttpCommandExecutorService.java:243)
> ... 8 more
> Removing blob cache 'fr6mxqa4d6aa'
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira