Skip to content

rgw: fix manifest end iterators before tail rule start - #71349

Merged
anrao19 merged 2 commits into
ceph:mainfrom
SaravananPalanisamyRWTH:wip-rgw-manifest-end-iter
Nov 13, 2026
Merged

anrao19 merged 2 commits into
ceph:mainfrom
SaravananPalanisamyRWTH:wip-rgw-manifest-end-iter

Conversation

@SaravananPalanisamyRWTH

Copy link
Copy Markdown

Problem:

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

For small S3 objects, where entire object can be stored in RADOS head object , obj_end() can select a tail rule that starts after the object end, which results in underflow error.

An unconditional early return at obj_size avoids the underflow, but prevents multipart end iterators from calculating the part ID immediately after the final part.

Solution:

Use rule specific start_ofs to check the current offset instead of checking with obj_size or head_size. The iterator return empty stripe instead of performing invalid arthithemetic. Hence only small objects are guarded with this rule, while multipart end iterators can calculate the next partID normally.

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.

For small head-only objects, obj_end() can select a tail rule that
starts after the object end. This result in underflow error for
obj_end() iterators of small objects.

Fixed this by returning empty stripe for such small bjects

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

Signed-off-by: Saravanan Palanisamy <[email protected]>
Add coverage for empty, head-only, tail and multipart manifest end
iterators.

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

Assisted-by: Claude Opus 5.0 <[email protected]>
Signed-off-by: Saravanan Palanisamy <[email protected]>
@github-actions

Copy link
Copy Markdown

Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR ci-approved to allow Jenkins CI jobs to run.

@adamemerson

Copy link
Copy Markdown
Contributor

ok to test

@SaravananPalanisamyRWTH

Copy link
Copy Markdown
Author

make_check test failed at 283 - unittest_posix_bucket_cache (Timeout) unrelated to my PR.
@adamemerson can you nudge make_check again ?

@adamemerson

Copy link
Copy Markdown
Contributor

jenkins test make check

@SaravananPalanisamyRWTH

Copy link
Copy Markdown
Author

@adamemerson

jenkins test make check
make_check job is still stale from previous run. This command did not retrigger the pipeline.

@github-actions

Copy link
Copy Markdown

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.

@anrao19

anrao19 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao3-testing-2026-11-02-0643-main.

@adamemerson

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@anrao19

anrao19 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao3-testing-2026-11-02-0643-main.

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

@anrao19
anrao19 merged commit 7c2d22b into ceph:main Nov 13, 2026
20 checks passed
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/43382933519

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