Skip to content

RGW - zipper - Remove target from get_obj_attrs()#62787

Merged
cbodley merged 2 commits intoceph:mainfrom
dang:wip-dang-getattrs
Oct 17, 2025
Merged

RGW - zipper - Remove target from get_obj_attrs()#62787
cbodley merged 2 commits intoceph:mainfrom
dang:wip-dang-getattrs

Conversation

@dang
Copy link
Contributor

@dang dang commented Apr 11, 2025

The target argument to get_obj_attrs() was only used internally to RadosStore and DBStore, and never by callers of the API. Remove it entirely, to reduce API complexity.

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. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

@dang dang requested a review from a team as a code owner April 11, 2025 16:24
@github-actions github-actions bot added the rgw label Apr 11, 2025
@dang
Copy link
Contributor Author

dang commented Apr 14, 2025

jenkins test api

@dang
Copy link
Contributor Author

dang commented Apr 14, 2025

jenkins test windows

pritha-srivastava added a commit to pritha-srivastava/ceph that referenced this pull request Apr 16, 2025
value in get_obj_attrs() from backend store,
using read_op->prepare() method.

target_obj will be removed from get_obj_attrs
as part of this PR: ceph#62787
and it was being used to get the object's instance
value. so using read_op->prepare(), till this gets fixed

Samarah identified that returning ENOENT when target_obj
is NULL, is incorrect and suggested removing that.

Signed-off-by: Samarah <samarah.uriarte@ibm.com>
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
pritha-srivastava added a commit to pritha-srivastava/ceph that referenced this pull request Apr 18, 2025
value in get_obj_attrs() from backend store,
using read_op->prepare() method.

target_obj will be removed from get_obj_attrs
as part of this PR: ceph#62787
and it was being used to get the object's instance
value. so using read_op->prepare(), till this gets fixed

Samarah identified that returning ENOENT when target_obj
is NULL, is incorrect and suggested removing that.

Signed-off-by: Samarah <samarah.uriarte@ibm.com>
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
@dang dang force-pushed the wip-dang-getattrs branch 2 times, most recently from bef2376 to 11e23d9 Compare April 18, 2025 17:34
pritha-srivastava added a commit to pritha-srivastava/ceph that referenced this pull request Apr 21, 2025
value in get_obj_attrs() from backend store,
using read_op->prepare() method.

target_obj will be removed from get_obj_attrs
as part of this PR: ceph#62787
and it was being used to get the object's instance
value. so using read_op->prepare(), till this gets fixed

Samarah identified that returning ENOENT when target_obj
is NULL, is incorrect and suggested removing that.

Signed-off-by: Samarah <samarah.uriarte@ibm.com>
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
pritha-srivastava added a commit to pritha-srivastava/ceph that referenced this pull request Apr 23, 2025
value in get_obj_attrs() from backend store,
using read_op->prepare() method.

target_obj will be removed from get_obj_attrs
as part of this PR: ceph#62787
and it was being used to get the object's instance
value. so using read_op->prepare(), till this gets fixed

Samarah identified that returning ENOENT when target_obj
is NULL, is incorrect and suggested removing that.

Signed-off-by: Samarah <samarah.uriarte@ibm.com>
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

pritha-srivastava added a commit to pritha-srivastava/ceph that referenced this pull request Apr 28, 2025
value in get_obj_attrs() from backend store,
using read_op->prepare() method.

target_obj will be removed from get_obj_attrs
as part of this PR: ceph#62787
and it was being used to get the object's instance
value. so using read_op->prepare(), till this gets fixed

Samarah identified that returning ENOENT when target_obj
is NULL, is incorrect and suggested removing that.

Signed-off-by: Samarah <samarah.uriarte@ibm.com>
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
dang added 2 commits May 1, 2025 13:19
The target argument to get_obj_attrs() was only used internally to
RadosStore and DBStore, and never by callers of the API.  Remove it
entirely, to reduce API complexity.

Signed-off-by: Daniel Gryniewicz <dang@fprintf.net>
get_obj_attrs() gets the instance of the object, but isn't setting it
into the Object.  Do this, so that calling get_obj_attrs() ensures the
instance is correct.

Signed-off-by: Daniel Gryniewicz <dang@fprintf.net>
@dang dang force-pushed the wip-dang-getattrs branch from 11e23d9 to b8079bd Compare May 1, 2025 17:21
@github-actions github-actions bot added the tests label May 1, 2025
@dang
Copy link
Contributor Author

dang commented May 1, 2025

@pritha-srivastava Please review the D4N bits.

@pritha-srivastava
Copy link
Contributor

pritha-srivastava commented May 2, 2025

@pritha-srivastava Please review the D4N bits.

The D4N bits look fine to me, @samarahu : for testing the failure in D4N suite you can use this PR instead of the temp commit we created.

@github-actions
Copy link

github-actions bot commented Jul 1, 2025

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions bot added the stale label Jul 1, 2025
@github-actions
Copy link

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@github-actions github-actions bot closed this Jul 31, 2025
@adamemerson adamemerson reopened this Jul 31, 2025
@adamemerson
Copy link
Contributor

@pritha-srivastava @dang Do we still need this, and is anything blocking it if so?

@github-actions github-actions bot removed the stale label Jul 31, 2025
@dang
Copy link
Contributor Author

dang commented Aug 4, 2025

Yeah, we should still merge this. Needs review, though.

@github-actions
Copy link

github-actions bot commented Oct 3, 2025

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions bot added the stale label Oct 3, 2025
@anrao19
Copy link
Contributor

anrao19 commented Oct 17, 2025

pr testing completed and approved by @ivancich. Please find the details : https://tracker.ceph.com/issues/73370
@dang , if there is not further testing needed this can be merged. Please let me know

@cbodley cbodley merged commit ddc8323 into ceph:main Oct 17, 2025
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants