Skip to content

rgw: add support for --shard-id in gc process and gc list commands - #68574

Merged
nhoad merged 2 commits into
ceph:mainfrom
nhoad:gc-shard-id
Jul 22, 2026
Merged

nhoad merged 2 commits into
ceph:mainfrom
nhoad:gc-shard-id

Conversation

@nhoad

@nhoad nhoad commented Apr 23, 2026 •

Copy link
Copy Markdown
Contributor

This allows operators to target individual GC shards when investigating or cleaning up data.

While I was here I've also cleaned up some of the code, making out-params consistently using pass-by-reference instead of a mix of pointers and references.

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

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@anthonyeleven

Copy link
Copy Markdown
Contributor

You’ll need to tick a box under the tests section of the checklist for the check to pass

@github-actions

Copy link
Copy Markdown

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

nhoad added 2 commits June 23, 2026 10:31
…nd gc list commands

This allows operators to do targeted GC work against specific shards, instead of working on all of them.

Signed-off-by: Nathan Hoad <[email protected]>
AI-Assisted: Used AI to generate the initial implementation.
…pass-by-reference instead of pointers.

Signed-off-by: Nathan Hoad <[email protected]>
AI-Assisted: I used AI to make this change. I reviewed and tested it manually.

@igomon-bloomberg igomon-bloomberg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me.

@nhoad nhoad added the needs-qa label Jun 23, 2026
@nhoad

nhoad commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test api

1 similar comment
@nhoad

nhoad commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test api

@nhoad

nhoad commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@nhoad

nhoad commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@anrao19

anrao19 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

pr testing completed and approved by @ivancich, more details : https://tracker.ceph.com/issues/77817.
@nhoad , if no further testing is needed then this pr can be merged

@nhoad
nhoad merged commit 0f3412d into ceph:main Jul 22, 2026
6 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.

4 participants