Skip to content

rgw: stop the realm reloader before destroying the pausers - #73134

Merged
anrao19 merged 1 commit into
ceph:mainfrom
sunyuechi:rgw-realm-reload-shutdown
Nov 3, 2026
Merged

anrao19 merged 1 commit into
ceph:mainfrom
sunyuechi:rgw-realm-reload-shutdown

Conversation

@sunyuechi

@sunyuechi sunyuechi commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

A period commit schedules a realm reload, which takes seconds. If
radosgw gets SIGTERM meanwhile, AppMain::shutdown() destroys
rgw_pauser and fe_pauser before reloader, and the running
reload() calls pause()/resume() on freed objects and segfaults.

Reset the realm watcher and the reloader first. The reloader's
destructor joins its timer thread, so it waits for a reload in
progress. This order was changed in e70d932.

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

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)

@sunyuechi
sunyuechi requested a review from a team as a code owner October 27, 2026 04:43
@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.

@github-actions github-actions Bot added the rgw label Oct 27, 2026
@smanjara

smanjara commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

thanks @sunyuechi. the change looks right to me. I had a tracker and a draft PR raised for the same in https://tracker.ceph.com/issues/80488 with more details about the crash. please use that tracker instead.

A period commit schedules a realm reload, which takes seconds. If
radosgw gets SIGTERM meanwhile, AppMain::shutdown() destroys
rgw_pauser and fe_pauser before reloader, and the running reload()
calls pause()/resume() on freed objects and segfaults.

Reset the realm watcher and the reloader first. The reloader's
destructor joins its timer thread, so it waits for a reload in
progress. This order was changed in e70d932.

Fixes: https://tracker.ceph.com/issues/80488
Signed-off-by: Sun Yuechi <[email protected]>
@sunyuechi
sunyuechi force-pushed the rgw-realm-reload-shutdown branch from c76fae9 to d0d31e6 Compare October 27, 2026 05:11
@sunyuechi

Copy link
Copy Markdown
Contributor Author

@smanjara Thanks, switched to 80488. Kept this open only so the fix doesn't get lost

@anrao19

anrao19 commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao4-testing-2026-10-28-0754-main.

@anrao19

anrao19 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao4-testing-2026-10-28-0754-main.

pr testing completed and approved by @ivancich , more details in : #73146
@sunyuechi, if no further testing is needed then this pr can be merged

@anrao19
anrao19 merged commit ae8e3c2 into ceph:main Nov 3, 2026
19 checks passed
@github-actions

github-actions Bot commented Nov 3, 2026

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/41614926337

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