Repository navigation
rgw: stop the realm reloader before destroying the pausers - #73134
Conversation
|
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 |
|
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]>
c76fae9 to
d0d31e6
Compare
|
@smanjara Thanks, switched to 80488. Kept this open only so the fix doesn't get lost |
|
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 |
|
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 |
A period commit schedules a realm reload, which takes seconds. If
radosgw gets SIGTERM meanwhile,
AppMain::shutdown()destroysrgw_pauserandfe_pauserbeforereloader, and the runningreload()callspause()/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