-
Notifications
You must be signed in to change notification settings - Fork 6k
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
nautilus: rgw: Use correct bucket info when put or get large object with swift. #40106
Conversation
@yehudasa Please help to review the code. |
@@ -858,8 +859,10 @@ int RGWPutObj_ObjStore_SWIFT::update_slo_segment_size(rgw_slo_entry& entry) { | |||
return r; | |||
} | |||
bucket = bucket_info.bucket; | |||
pbucket_info = &bucket_info; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is storing a pointer to RGWBucketInfo bucket_info;
which goes out of scope on the next line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I fixed it in pr to octopus, #40296,
@xijiacun The standard procedure [1] in this case would be:
Would that be OK for you? [1] https://github.com/ceph/ceph/blob/master/SubmittingPatches-backports.rst |
@xijiacun sorry for the latency. i am not qualified for reviewing RGW changes like your fix. so i'd defer the review to developers who have better understanding of RGW. @smithfarm i am removing the DNM label, since the octopus fix has been merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xijiacun When I tried cherry-picking b6bf107 to nautilus, I got a conflict. Did you also?
The reason I ask is I noticed the commit message in this PR does not have a "Conflicts" section, which ordinarily means the cherry-pick applied cleanly (?).
When you run git cherry-pick -x
and need to resolve conflicts, git generates this "Conflicts" section when it generates the commit message. Unfortunately, as of a certain git version it also started commenting-out the Conflicts section that it generates, so now it's easy to forget to uncomment it.
For more information, see https://github.com/ceph/ceph/blob/master/SubmittingPatches-backports.rst#cherry-picking-rules where it says:
- the commit message generated by
git cherry-pick -x
must not be modified, except to add a "Conflicts" section below the "cherry picked from commit ..." line added by git - the "Conflicts" section must mention all files where changes had to be made manually (not just conflicts flagged by git)
- the "Conflicts" section should also describe the manual changes that were made
and https://github.com/ceph/ceph/blob/master/SubmittingPatches-backports.rst#conflict-resolution which presents an example illustrating what a Conflicts section looks like.
yes, there is a conflict. I cherry-pick again to add conflicts section. @smithfarm |
Fixes: https://tracker.ceph.com/issues/49791 Signed-off-by: zhiming zhang <zhangzhm1@chinatelecom.cn> Signed-off-by: yupeng chen <chenyupeng@chinatelecom.cn> (cherry picked from commit bdd0635) Conflicts: src/rgw/rgw_op.cc src/rgw/rgw_rest_swift.cc -In octopus: - RGWRados::Object op_target(store->getRados(), ...) -In nautilus: - RGWRados::Object op_target(store, ...)
The commit message looks good to me now, thank you!
backport tracker: https://tracker.ceph.com/issues/50836
backport of #40296
parent tracker: https://tracker.ceph.com/issues/49791
Fixes: https://tracker.ceph.com/issues/49791
Signed-off-by: zhiming zhang zhangzhm1@chinatelecom.cn
Signed-off-by: yupeng chen chenyupeng@chinatelecom.cn
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox