Project

General

Profile

Actions

Bug #80916

closed
KB MH

rgw: radoslist lists the heads of delete markers, which do not exist

Bug #80916: rgw: radoslist lists the heads of delete markers, which do not exist

Added by Kyle Bader 2 months ago. Updated about 2 months ago.

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

0%

Source:
Backport:
umbrella, tentacle, squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-4274-g06b76cd431
Released In:
Upkeep Timestamp:
2026-10-12T13:14:27+00:00

Description

Found by comparing an independent listing (a bucket's index shards and head manifests, read directly) with radosgw-admin bucket radoslist, object for object. Reproduced on a single-host vstart cluster built from main at 7ed73efc1be; the code cited is unchanged at 2d0cd8af0a0, and the same in reef, squid and tentacle. M stands for the bucket's marker.

process_bucket lists with list_versions = true, and stats every entry it gets, delete markers included (orphan.cc:1312). A delete marker has no head object, so every one takes the ENOENT path, which logs an error and prints the name of a head that never existed (orphan.cc:1069-1076):

$ radosgw-admin bucket radoslist --bucket=b --rgw-obj-fs=,
M_gone,b,gone
M__:mzSaYR3haJt4Cwgwy.QrsVJnjbcXafg_gone,b,gone[mzSaYR3haJt4Cwgwy.QrsVJnjbcXafg]
ERROR: pop_and_handle_stat_op: stat of head object resulted in ENOENT; oid=M__:mzSaYR3haJt4Cwgwy.QrsVJnjbcXafg_gone
M__:.Nufkype7vjnC-vk1w1n.Cdo05vWMw3_gone,b,gone[.Nufkype7vjnC-vk1w1n.Cdo05vWMw3]

rgw-gap-list reports every delete marker in the cluster as a gap. On the test cluster, 5 of the 29 gaps it reported were delete markers.

Reproducer: in a bucket with versioning enabled, put and then delete a key, and run radoslist, or rgw-gap-list on the data pool.

Fix: skip the stat of an entry that is_delete_marker(). Keep the stat of the key's OLH, which exists.


Related issues 3 (2 open — 1 closed)

Copied to rgw - Backport #81653: umbrella: rgw: radoslist lists the heads of delete markers, which do not existFix Under ReviewMatthew Heler

Actions
Copied to rgw - Backport #81654: squid: rgw: radoslist lists the heads of delete markers, which do not existResolvedMatthew Heler

Actions
Copied to rgw - Backport #81655: tentacle: rgw: radoslist lists the heads of delete markers, which do not existFix Under ReviewMatthew Heler

Actions

MH Updated by Matthew Heler 2 months ago Actions #1

  • Assignee set to Matthew Heler
  • Backport changed from tentacle to umbrella, tentacle, squid

MH Updated by Matthew Heler 2 months ago Actions #2

  • Pull request ID set to 72120

MH Updated by Matthew Heler 2 months ago Actions #3

  • Status changed from New to Fix Under Review

UB Updated by Upkeep Bot about 2 months ago Actions #4

  • Copied to Backport #81653: umbrella: rgw: radoslist lists the heads of delete markers, which do not exist added

UB Updated by Upkeep Bot about 2 months ago Actions #5

  • Copied to Backport #81654: squid: rgw: radoslist lists the heads of delete markers, which do not exist added

UB Updated by Upkeep Bot about 2 months ago Actions #6

  • Copied to Backport #81655: tentacle: rgw: radoslist lists the heads of delete markers, which do not exist added

UB Updated by Upkeep Bot about 2 months ago Actions #7

  • Status changed from Fix Under Review to Backporting
  • Merge Commit set to 06b76cd4310ec16eabd2684847978e31e42093bb
  • Fixed In set to v21.3.0-4274-g06b76cd431
  • Upkeep Timestamp set to 2026-10-12T13:14:27+00:00
Actions

Also available in: PDF Atom