Bug #77883
closedrgw: dedicated GC RGW crashes while expiring cloud restore entries
0%
Description
A dedicated GC RGW can crash during startup if it begins processing expired cloud restore entries before quota_handler has been initialized.
In this case the crash was in the rgw_obj_expirer thread:
RGWRados::Object::Write::_do_write_meta()
RGWRados::Object::Write::write_meta()
rgw::sal::RadosObject::handle_obj_expiry()
RGWObjectExpirer::garbage_single_object()
-5> 2026-06-30T20:31:56.665+0000 7fdec4ae46c0 10 garbage collection: RGWGC::process failed to acquire lock on gc.10
-4> 2026-06-30T20:31:56.665+0000 7fdec4ae46c0 20 garbage collection: RGWGC::process entered with GC index_shard=11, max_secs=3600, expired_only=1
-3> 2026-06-30T20:31:56.681+0000 7fdec42e36c0 20 rgw object expirer Worker thread: get_obj_state: octx=0x55c12165e070 obj=xyzbucket:action-d73c2568-36e9-49e6-9878-3fa71d96288e/2024/9CB07767628FDF1EA1604226BCF663486D438639000004AB state=0x55c120d261e8 s->prefetch_data=0
-2> 2026-06-30T20:31:56.681+0000 7fe2e4b236c0 10 monclient: get_auth_request con 0x55c1221a3000 auth_method 0
-1> 2026-06-30T20:31:56.681+0000 7fded930d6c0 20 handle_completion(): completion ok for obj=action-d73c2568-36e9-49e6-9878-3fa71d96288e/2024/9CB07767628FDF1EA1604226BCF663486D438639000004AB
0> 2026-06-30T20:31:56.681+0000 7fdec42e36c0 -1 *** Caught signal (Segmentation fault) **
in thread 7fdec42e36c0 thread_name:rgw_obj_expirer
It appears RGW is starting the GC/object-expirer threads before creating quota_handler. For a dedicated GC RGW that has expired cloud restore entries waiting at startup, the expirer could process one immediately and crash when updating quota stats. Which is what was being observed.
MH Updated by Matthew Heler 5 months ago
- Related to Bug #76094: multisite: "failed to read metadata sync status for zone=test-zone2" due to crash on realm reload added
MH Updated by Matthew Heler 5 months ago
- Severity changed from 2 - major to 3 - minor
AE Updated by Adam Emerson 5 months ago
- Status changed from New to Fix Under Review
- Pull request ID set to 68920
JI Updated by J. Eric Ivancich 5 months ago
- Assignee set to Matthew Heler
CB Updated by Casey Bodley 5 months ago
- Status changed from Fix Under Review to Duplicate
since this is resolved by https://github.com/ceph/ceph/pull/68920, we'll track backports in https://tracker.ceph.com/issues/76094
UB Updated by Upkeep Bot 5 months ago
- Merge Commit set to 9f77776598cff0331cc75d86326590a225ab9d65
- Fixed In set to v21.3.0-862-g9f77776598
- Upkeep Timestamp set to 2026-07-09T20:47:46+00:00
AE Updated by Adam Emerson 5 months ago
- Copied to Backport #78311: tentacle: rgw: dedicated GC RGW crashes while expiring cloud restore entries added
AE Updated by Adam Emerson 5 months ago
- Copied to Backport #78370: squid: rgw: dedicated GC RGW crashes while expiring cloud restore entries added
AE Updated by Adam Emerson 5 months ago
- Copied to Backport #78374: umbrella: rgw: dedicated GC RGW crashes while expiring cloud restore entries added
UB Updated by Upkeep Bot 3 months ago
- Upkeep Timestamp changed from 2026-07-09T20:47:46+00:00 to 2026-08-28T13:11:59+00:00
UB Updated by Upkeep Bot 3 months ago
- Upkeep Timestamp changed from 2026-08-28T13:11:59+00:00 to 2026-08-29T13:31:06+00:00
UB Updated by Upkeep Bot 3 months ago
- Pull request ID deleted (
68920) - Merge Commit deleted (
9f77776598cff0331cc75d86326590a225ab9d65) - Fixed In deleted (
v21.3.0-862-g9f77776598) - Upkeep Timestamp changed from 2026-08-29T13:31:06+00:00 to 2026-08-29T14:20:44+00:00