Skip to content

rgw: treat -EFBIG as advance-and-retry in unordered listing - #65319

Merged
anrao19 merged 1 commit into
ceph:mainfrom
beomseok-park:fix-efbig
Feb 24, 2026
Merged

anrao19 merged 1 commit into
ceph:mainfrom
beomseok-park:fix-efbig

Conversation

@beomseok-park

@beomseok-park beomseok-park commented Sep 1, 2025 •

Copy link
Copy Markdown
Contributor

The RGW cls bucket listing may return RGWBIAdvanceAndRetryError(-EFBIG) when it cannot return any visible entries in a call but has advanced the marker; callers are expected to retry with the updated marker.

RGWRados::cls_bucket_list_unordered() treated this condition as a fatal error and aborted the listing, which could prematurely terminate listings for buckets with many non-visible entries.

This change handles RGWBIAdvanceAndRetryError by advancing to the returned marker and continuing the loop, correctly interpreting it as "advance and retry."

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

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

@beomseok-park
beomseok-park requested a review from a team as a code owner September 1, 2025 11:38
@github-actions github-actions Bot added the rgw label Sep 1, 2025
@beomseok-park

Copy link
Copy Markdown
Contributor Author

I was not able to reproduce the issue myself, but I found the problem in a bucket with versioning enabled on a cluster running the pacific version.

Before the patch

# radosgw-admin lc process --bucket <bucket_name> --debug_rgw 10
...
2025-09-01 14:16:19.416 7f8cf40fc300  0 lifecycle: ERROR: cls_bucket_list_unordered: error in rgw_rados_operate (bucket list op), r=-27

2025-09-01 14:16:19.416 7f8cf40fc300  0 lifecycle: ERROR: store->list_objects():

ERROR: lc processing returned error: (27) File too large
...

After the patch

# ./radosgw-admin lc process --bucket <bucket_name> --debug_rgw 10
...
2025-09-01 14:16:29.364 7f09f644eb40 10 lifecycle: cls_bucket_list_unordered: got RGWBIAdvanceAndRetryError on oid=.dir.7e5b09ea-0475-4e0d-bf09-859d13c2f1f7.41969188.27.31; prev_marker= -> marker=_multipart_<object_name>.2~IxRO5AQaFAw3d3j--o1CkBSo9bSf2o6.6[iB1Rwwxi9dNab.mMvFBIQ2G5b2m3aWf]; advancing marker and retrying

2025-09-01 14:16:29.425 7f09f644eb40 10 lifecycle: cls_bucket_list_unordered: got RGWBIAdvanceAndRetryError on oid=.dir.7e5b09ea-0475-4e0d-bf09-859d13c2f1f7.41969188.27.31; prev_marker=_multipart_<object_name>.2~IxRO5AQaFAw3d3j--o1CkBSo9bSf2o6.6[iB1Rwwxi9dNab.mMvFBIQ2G5b2m3aWf] -> marker=_multipart_<object_name>.2~dKGCm48EjlpbhF6rl-ObmMuU-2sTQEO.8[eUm-3elA8G0uNgge6xuJDQ-MRhIHanN]; advancing marker and retrying

2025-09-01 14:16:29.485 7f09f644eb40 10 lifecycle: cls_bucket_list_unordered: got RGWBIAdvanceAndRetryError on oid=.dir.7e5b09ea-0475-4e0d-bf09-859d13c2f1f7.41969188.27.31; prev_marker=_multipart_<object_name>.2~dKGCm48EjlpbhF6rl-ObmMuU-2sTQEO.8[eUm-3elA8G0uNgge6xuJDQ-MRhIHanN] -> marker=_multipart_<object_name>.2~xiae8OwgiZ7BAZXZQbOZ47bErRoYMYc.11[.aabUQDYATjtDfNQQVErThfy05FbGs9]; advancing marker and retrying
...

@adamemerson

Copy link
Copy Markdown
Contributor

@ivancich Could you take a look?

@ivancich ivancich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Before approving I just want to better understand how it's supposed to work.

Comment thread src/rgw/driver/rados/rgw_rados.cc Resolved
@ivancich

Copy link
Copy Markdown
Member

Thanks! I've approved and added the needs-qa label, so we can get this merged. Thank you for the contribution!

@anrao19

anrao19 commented Oct 22, 2025

Copy link
Copy Markdown
Contributor

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

@beomseok-park

Copy link
Copy Markdown
Contributor Author

@anrao19 No further testing is needed. Thanks!

Comment thread src/rgw/driver/rados/rgw_rados.cc Resolved
@beomseok-park

Copy link
Copy Markdown
Contributor Author

jenkins test api

@beomseok-park

Copy link
Copy Markdown
Contributor Author

jenkins test docs

@beomseok-park

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@adamemerson

Copy link
Copy Markdown
Contributor

jenkins test docs

1 similar comment
@anrao19

anrao19 commented Oct 30, 2025

Copy link
Copy Markdown
Contributor

jenkins test docs

The RGW cls bucket listing may return RGWBIAdvanceAndRetryError(-EFBIG) when it cannot return any visible entries in a call but has advanced the marker; callers are expected to retry with the updated marker.

RGWRados::cls_bucket_list_unordered() treated this condition as a fatal error and aborted the listing, which could prematurely terminate listings for buckets with many non-visible entries.

This change handles RGWBIAdvanceAndRetryError by advancing to the returned marker and continuing the loop, correctly interpreting it as "advance and retry."

Fixes: https://tracker.ceph.com/issues/63721
Signed-off-by: PARK BEOMSEOK <[email protected]>
@anrao19

anrao19 commented Oct 30, 2025

Copy link
Copy Markdown
Contributor

jenkins test windows

@github-actions

github-actions Bot commented Jan 4, 2026

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.

@github-actions github-actions Bot added the stale label Jan 4, 2026
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@github-actions github-actions Bot removed the stale label Jan 4, 2026
@anrao19

anrao19 commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

@anrao19

anrao19 commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

Execution complete, tracker approved by @ivancich. tracker detail: https://tracker.ceph.com/issues/73732
@beomseok-park , If no further testing needed, pr can be merged

@beomseok-park

Copy link
Copy Markdown
Contributor Author

@anrao19 Testing is complete and no further testing is needed.
Thanks, please go ahead with the merge.

@anrao19
anrao19 merged commit cc1bac2 into ceph:main Feb 24, 2026
@github-actions

Copy link
Copy Markdown

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

I found one or more Fixes: tags in the commit messages in

git log cc1bac20d992ca7b1d433cd868ae0efb5a704f41^..cc1bac20d992ca7b1d433cd868ae0efb5a704f41

The referenced tickets are:

Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them.

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

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.

6 participants