Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nautilus: osd/PG: fix cleanup of pgmeta-like objects on PG deletion #29115

Merged
merged 3 commits into from Jul 30, 2019

Conversation

liewegas
Copy link
Member

If an object has an empty 'name' field, it "looks" like a pgmeta object,
and the PG cleanup code was skipping it.  However, we were letting these
objects get created.

Fix by only skipping *our* pgmeta object.  If there are other pgmeta-like
objects in the PG collection, clean them up.

Fixes: https://tracker.ceph.com/issues/38724
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit a0f48db)

# Conflicts:
#	src/osd/PG.cc
- location of this code is do_delete_work in master, _delete_some in n
These may conflict with pgmeta objects.  And are going to cause other
problems later (e.g., https://tracker.ceph.com/issues/38724).

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit bf6e8a4)
This is always a bug (OSD doesn't try to remove a collection unless it
thinks it is empty), and not seeing it at default debug levels makes it
hard to track down.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit e387cbc)
@liewegas liewegas added this to the nautilus milestone Jul 18, 2019
@smithfarm smithfarm added the nautilus-batch-1 nautilus point releases label Jul 22, 2019
@yuriw
Copy link
Contributor

yuriw commented Jul 24, 2019

@yuriw yuriw merged commit bdea51a into ceph:nautilus Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants