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: fix CompleteMultipart error handling regression #57300

Merged
merged 3 commits into from
May 8, 2024

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented May 6, 2024

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


backport of #57257
parent tracker: https://tracker.ceph.com/issues/65746

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

most requests operate directly on s->object. there's no reason to
allocate a separate target_obj for the same purpose

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit d09b8ab)
get_notification() should be associated with the target object
s->object. the meta_obj has the wrong object name, so required passing
s->object->get_name() as an extra argument

importantly, Notification no longer depends on the lifetime of meta_obj
to avoid a dangling pointer, while the lifetime of s->object is guaranteed

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 91dc7f3)
move publish_complete() and meta_obj->delete_object() back to execute()
so they only run on success. this allows several member variables to
move back to execute()'s stack as well

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

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit ebb37c7)
@cbodley cbodley requested a review from a team as a code owner May 6, 2024 17:20
@cbodley cbodley added this to the squid milestone May 6, 2024
@cbodley
Copy link
Contributor Author

cbodley commented May 8, 2024

Copy link
Contributor

@AliMasarweh AliMasarweh left a comment

Choose a reason for hiding this comment

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

lgtm

@cbodley cbodley merged commit d64e75c into ceph:squid May 8, 2024
11 checks passed
@cbodley cbodley deleted the wip-65821-squid branch May 8, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants