]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: restrict async_recovery_targets to up osds 22889/head
authorNeha Ojha <nojha@redhat.com>
Wed, 20 Jun 2018 17:20:58 +0000 (13:20 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 5 Jul 2018 20:27:01 +0000 (22:27 +0200)
commit40ae873e8c557b0b8b9388b9835a716ef02de8c1
tree8c313ab0fa446ddcaef2a20c95dea2c855aaa9c2
parent63c5e06575a647cb030af73204c26eb9ecad3936
osd/PG: restrict async_recovery_targets to up osds

When an osd that is part of the acting set and not the up set, gets chosen
as an async_recovery_target, it gets removed from the acting set. Since this
osd is no longer in the up or acting set, it is classified as a stray in
the next peering cycle. This results in choose_acting() looping between two
proposed acting sets.

To avoid this, we will only choose up osds as async_recovery_targets.

Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit 7f1b6adec31e71ef4b3ec9b3c5cba8b1a4b7746f)
src/osd/PG.cc