In Swift store, retry chunk upload on Exception
Bug #1310735 reported by
Hemanth Makkapati
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glance_store |
Won't Fix
|
Undecided
|
Hemanth Makkapati |
Bug Description
During an image upload, if an exception occurs while uploading a chunk to swift, the glance swift store aborts the upload and deletes all the chunks that were uploaded thus far. Though this is the desired behavior, it maybe worthwhile to retry the failed chunk before deleting other chunks to account for intermittent connection errors. This will save a lot of time and bandwidth especially in the case of large images.
https:/
Changed in glance: | |
assignee: | nobody → Hemanth Makkapati (hemanth-makkapati) |
affects: | glance → glance-store |
To post a comment you must log in.
Hi Hemanth,
This may be worth a blueprint rather than a bug? eg similar to https:/ /blueprints. launchpad. net/glance/ +spec/retry- swift-download
If you're going to push up a patch (most welcome!) its probably worth bearing in mind
that the current method doesn't use much memory/disk when uploading (as it doesn't have to cache for retry) so it may
be worth making the behaviour configurable.