]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: move down peers out from peer_purged 27878/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 26 Mar 2019 07:02:02 +0000 (15:02 +0800)
committerPrashant D <pdhange@redhat.com>
Mon, 29 Apr 2019 23:22:58 +0000 (19:22 -0400)
commit15bc54eab5912c4c010666c1644dc9cc36d74c80
tree57a068c4106eb89a54bdb13e89bd0bed20ffdfdb
parent2fad7d77721c91a32697c958f65cbbbe75766dbc
osd/PG: move down peers out from peer_purged

In purge_strays(), we'll aggressively clear stray_set and
add all related peers into peer_purged.

However, if the corrsponding peer is down and becomes
up again, (unconditionally) adding it to peer_purged
will prevent primary from re-purging it.
(See Active::react(const MNotifyRec& notevt))

On consuming a new osdmap, let's move any down peers out from
peer_purged simutaneously. This way we can lower the risk
of leaving any leftover PGs behind.

Related-to: http://tracker.ceph.com/issues/38931
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit f7c5b01e181630bb15e8b923b0334eb6adfdf50a)
src/osd/PG.cc