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

squid: rgw_file: fix mv/rename cases broken by zipper integration #56345

Merged
merged 1 commit into from Apr 2, 2024

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Mar 20, 2024

backport tracker: https://tracker.ceph.com/issues/65009


backport of #56220
parent tracker: https://tracker.ceph.com/issues/64950

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

There were two problems.  First, leaf object names must be
expressed as fully-qualified to the bucket as input to the
copy-object step.  Second, handle s->object in the same step
indicates the being-created destination object of the copy,
this was correct in the original zipper change but broken
later.

* add a rename/mv unit test

Tests for the following cases added:

1. move between two sub-directory paths in a single bucket
2. move between two names at the top level of a single bucket
3. move between sub-directory paths in different buckets (cross-bucket rename)

Fixes: https://tracker.ceph.com/issues/64950

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit f11cdb1)
@cbodley cbodley requested a review from a team as a code owner March 20, 2024 15:09
@cbodley cbodley added this to the squid milestone Mar 20, 2024
@cbodley cbodley added the rgw label Mar 20, 2024
@cbodley
Copy link
Contributor Author

cbodley commented Apr 2, 2024

@cbodley
Copy link
Contributor Author

cbodley commented Apr 2, 2024

jenkins test this please

@cbodley
Copy link
Contributor Author

cbodley commented Apr 2, 2024

jenkins retest this please

@cbodley cbodley merged commit c4437b4 into ceph:squid Apr 2, 2024
11 checks passed
@cbodley cbodley deleted the wip-65009-squid branch April 2, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants