Bug #11442
closed
Objects with names starting with underscore become inaccessible after upgrading to Hammer
Added by Benjamin Gilbert about 9 years ago.
Updated almost 9 years ago.
Description
In Hammer, rgw objects whose names start with "_" and which were created with older versions of rgw (e.g. Giant) are inaccessible. They still appear in the bucket listing, but attempts to access them return NoSuchKey.
Objects with such names that are created with a Hammer rgw do not exhibit the problem.
- Assignee set to Yehuda Sadeh
- Priority changed from Normal to Urgent
It seems that the original code had an unintended behavior where it set an object locator with different name than the key when the object name started with underscore. Cleaning up this part of the code for hammer also changed the behavior.
adding radosgw-admin command that fixes the bad objects that were created after hammer:
$ ./radosgw-admin bucket check --check-head-obj-locator \
--bucket=<bucket> [--fix]
also there's a --remove-bad flag that can be specified and can be used after the fix has been applied and tested.
- Status changed from New to Pending Backport
- Backport set to hammer
- Status changed from Pending Backport to Resolved
Committed in Hammer, commit:512ae4cb3e182ce79aca7354c66d2f2a662555da
Also available in: Atom
PDF