st retry failure error message could be more informative
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Medium
|
gholt |
Bug Description
swift-1.2.0
While trying to use 'st' to upload a large file, several segments were successfully uploaded but then a ClientException was thrown:
st -A
https:/
<email address hidden> -K xxx upload -S 4294967296 test_container t2
t2 segment 7
t2 segment 9
t2 segment 6
t2 segment 2
t2 segment 8
t2 segment 5
t2 segment 1
t2 segment 0
t2 segment 4
t2 segment 3
t2 segment 15
t2 segment 16
t2 segment 10
t2 segment 13
t2 segment 11
t2 segment 12
Exception in thread Thread-21:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/local/
line 861, in run
self.func(item, *self.args, **self.kwargs)
File "/usr/local/
line 1473, in _segment_job
job['obj'], fp, content_
File "/usr/local/
line 820, in put_object
content_
File "/usr/local/
line 742, in _retry
rv = func(self.url, self.token, *args, **kwargs)
File "/usr/local/
line 640, in put_object
http_
ClientException: Object PUT failed:
https:/
408 Request Timeout
Related branches
- Jay Payne (community): Approve
- David Goetz (community): Approve
-
Diff: 414 lines (+126/-39)2 files modifiedbin/st (+122/-39)
swift/common/client.py (+4/-0)
Changed in swift: | |
status: | In Progress → Fix Committed |
Changed in swift: | |
milestone: | none → 1.4.0 |
status: | Fix Committed → Fix Released |
Forgot to say what I hazard to suggest should be done:
(A) Some # of retries should be attempted before giving up so drastically.
and/or
(B) there should be a way to resume (like wget -c) from that last failed segment.