]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: restrict async_recovery_targets to up osds 22664/head
authorNeha Ojha <nojha@redhat.com>
Wed, 20 Jun 2018 17:20:58 +0000 (13:20 -0400)
committerNeha Ojha <nojha@redhat.com>
Thu, 21 Jun 2018 18:16:47 +0000 (14:16 -0400)
commit7f1b6adec31e71ef4b3ec9b3c5cba8b1a4b7746f
treef157e0cd39c540c93dc0e2a1a4a9cf17ec93bd53
parent2d2293948066cae8d656dfe91bdb6695958a52e9
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>
src/osd/PG.cc