Bug #80918
closedrgw-gap-list reports every object with a locator as a gap
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.
rgw-gap-list compares rados ls output with radoslist's (rgw-gap-list:111). For an object with a locator, rados ls prints <oid><TAB><locator>, which never matches radoslist's <oid>. So the head of every key starting with _, versioned or not, is reported as a gap. Those heads carry a locator (rgw_obj_key::get_loc()). rgw-orphan-list handles the same format by setting such lines aside.
On the test cluster, 8 of the 29 gaps were heads with locators, among them _under, __double, _multipart_fake, _shadow_fake.1 and a versioned _v-under[HracefSpSic83Ptox-jsfD-Q98wsgCC]. All of them exist:
$ rados -p default.rgw.buckets.data ls | grep -F M___under M___under M__under
Of the other 21 gaps, 5 were real and seeded, 5 are delete markers (#80916) and 2 are misnamed OLHs (#80915). The remaining 9 were open uploads' meta objects, which live in the data-extra pool, and that run was not given it with -p.
Reproducer: put the key _under into any bucket, then run rgw-gap-list on the data pool.
Fix: keep only the oid column of rados ls before comparing (rados ls --pool=... | cut -f1), or compare oid and locator together.
MH Updated by Matthew Heler 2 months ago
- Status changed from New to Fix Under Review
- Assignee set to Matthew Heler
- Backport changed from tentacle to umbrella, tentacle
- Pull request ID set to 72121
UB Updated by Upkeep Bot about 2 months ago
- Copied to Backport #81651: umbrella: rgw-gap-list reports every object with a locator as a gap added
UB Updated by Upkeep Bot about 2 months ago
- Copied to Backport #81652: tentacle: rgw-gap-list reports every object with a locator as a gap added
UB Updated by Upkeep Bot about 2 months ago
- Status changed from Fix Under Review to Backporting
- Merge Commit set to 1935e22eb707b2b18b580482354ad435ea92db9b
- Fixed In set to v21.3.0-4272-g1935e22eb7
- Upkeep Timestamp set to 2026-10-12T13:13:55+00:00