]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PG.cc: handle removal of pgmeta object 41623/head
authorNeha Ojha <nojha@redhat.com>
Thu, 22 Apr 2021 17:13:40 +0000 (17:13 +0000)
committerCory Snyder <csnyder@iland.com>
Tue, 1 Jun 2021 11:50:09 +0000 (07:50 -0400)
commit0b7f6059582baef7bcc3dbeb941076c51b7137d7
tree9268816c8fd4a49da257d72840f74c6747be358b
parentc44bc49e7a57a87d84dfff2a077a2058aa2172e2
osd/PG.cc: handle removal of pgmeta object

In 7f047005fc72e1f37a45cde2d742bb2eb1e62881, we made the pg removal code
much more efficient. But it started marking the pgmeta object as an unexpected
onode, which in reality is expected to be removed after all the other objects.

This behavior is very easily reproducible in a vstart cluster:

ceph osd pool create test 1 1
rados -p test bench 10 write --no-cleanup
ceph osd pool delete test test  --yes-i-really-really-mean-it

Before this patch:

"do_delete_work additional unexpected onode list (new onodes has appeared
since PG removal started[#2:00000000::::head#]" seen in the OSD logs.

After this patch:

"do_delete_work removing pgmeta object #2:00000000::::head#" is seen.

Related to:https://tracker.ceph.com/issues/50466
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit 0e917f1b1e18ca9e48b3f91110d3a46b086f7d83)
src/osd/PG.cc