Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: fix error handling for GET with ?torrent #21576

Merged
merged 1 commit into from Apr 25, 2018
Merged

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Apr 20, 2018

GET requests with ?torrent should never be treated as a normal GET request. if rgw_torrent_flag wasn't true when the object was uploaded, we'll detect the lack of torrent data when reading from omap

conversely, if rgw_torrent_flag was true during upload but disabled afterwards, we can still return the torrent data

Fixes: http://tracker.ceph.com/issues/23506

GET requests with ?torrent should never be treated as a normal GET
request. if rgw_torrent_flag wasn't true when the object was uploaded,
we'll detect the lack of torrent data when reading from omap

conversely, if rgw_torrent_flag was true during upload but disabled
afterwards, we can still return the torrent data

Fixes: http://tracker.ceph.com/issues/23506

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley cbodley requested a review from robbat2 April 23, 2018 14:46
@robbat2
Copy link
Contributor

robbat2 commented Apr 23, 2018

Future TODO: add tooling during RGW scrub to populate the torrent omap data for old objects and those where rgw_torrent_flag was false.

Copy link
Contributor

@robbat2 robbat2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just needs better docs in general.

@cbodley cbodley merged commit ce85a73 into ceph:master Apr 25, 2018
@cbodley cbodley deleted the wip-23506 branch April 25, 2018 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants