Bug #80916
closedrgw: radoslist lists the heads of delete markers, which do not exist
0%
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.
MH Updated by Matthew Heler 2 months ago
- Assignee set to Matthew Heler
- Backport changed from tentacle to umbrella, tentacle, squid
MH Updated by Matthew Heler 2 months ago
- Pull request ID set to 72120
MH Updated by Matthew Heler 2 months ago
- Status changed from New to Fix Under Review
UB Updated by Upkeep Bot about 2 months ago
- 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
- 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
- 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
- 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