Project

General

Profile

Actions

Bug #77883

closed
MH MH

rgw: dedicated GC RGW crashes while expiring cloud restore entries

Bug #77883: rgw: dedicated GC RGW crashes while expiring cloud restore entries

Added by Matthew Heler 5 months ago. Updated 3 months ago.

Status:
Duplicate
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle, umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:
2026-08-29T14:20:44+00:00

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.


Related issues 4 (0 open — 4 closed)

Related to rgw - Bug #76094: multisite: "failed to read metadata sync status for zone=test-zone2" due to crash on realm reloadResolvedAdam Emerson

Actions
Copied to rgw - Backport #78311: tentacle: rgw: dedicated GC RGW crashes while expiring cloud restore entriesResolvedAdam Emerson

Actions
Copied to rgw - Backport #78370: squid: rgw: dedicated GC RGW crashes while expiring cloud restore entriesResolvedAdam Emerson

Actions
Copied to rgw - Backport #78374: umbrella: rgw: dedicated GC RGW crashes while expiring cloud restore entriesResolvedAdam Emerson

Actions

MH Updated by Matthew Heler 5 months ago Actions #1

  • 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 Actions #2

  • Severity changed from 2 - major to 3 - minor

AE Updated by Adam Emerson 5 months ago Actions #3

  • Status changed from New to Fix Under Review
  • Pull request ID set to 68920

JI Updated by J. Eric Ivancich 5 months ago Actions #4

  • Assignee set to Matthew Heler

UB Updated by Upkeep Bot 5 months ago Actions #6

  • 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 Actions #7

  • Copied to Backport #78311: tentacle: rgw: dedicated GC RGW crashes while expiring cloud restore entries added

AE Updated by Adam Emerson 5 months ago Actions #8

  • Copied to Backport #78370: squid: rgw: dedicated GC RGW crashes while expiring cloud restore entries added

AE Updated by Adam Emerson 5 months ago Actions #9

  • Copied to Backport #78374: umbrella: rgw: dedicated GC RGW crashes while expiring cloud restore entries added

UB Updated by Upkeep Bot 3 months ago Actions #10

  • 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 Actions #11

  • 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 Actions #12

  • 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
Actions

Also available in: PDF Atom