Repository navigation
Conversation
If by some reason a client re-sent a part of multipart upload, the reference to the previously successfully uploaded part was lost and it ended up in orphans. To avoid orphans skip the newly uploaded part if the previous attempt succeeded (the first that comes wins). Fixes: https://tracker.ceph.com/issues/44660 Signed-off-by: Mykola Golub <[email protected]>
|
does this generalize to all cases? work is ongoing that will do so |
|
This is an attempt to fix https://tracker.ceph.com/issues/44660 It is not complete as it uses rados backend specific But before working on the improvement I would like to see what other people think about the approach. Does it look right? |
|
I don't think so, to be honest (but I appreciate the effort a lot, this defect has been around a long while). My proposed approach is to just use CLS to accumulate all generated part names for an uploaded part (#37260). Yixin Jin ( @yima77 ) came up with a revised version after reading my 2020 PR, and we've been working to combine the changes and finish the cleanup steps. |
@mattbenjamin I am not sure I understand the question. I was not aware someone had already been working on this. If it is true and there will be a more generic solution, I will be happy to close this PR. |
Ah, great news! I was not aware of it. Then this PR may be closed. |
|
thanks @trociny |
If by some reason a client re-sent a part of multipart upload, the reference to the previously successfully uploaded part was lost and it ended up in orphans.
To avoid orphans skip the newly uploaded part if the previous attempt succeeded (the first that comes wins).
Fixes: https://tracker.ceph.com/issues/44660
Signed-off-by: Mykola Golub [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows