]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/PG: reset PG peering if osd transitions from down -> up
authorSage Weil <sage@redhat.com>
Thu, 7 Jun 2018 12:07:19 +0000 (07:07 -0500)
committerSage Weil <sage@redhat.com>
Thu, 7 Jun 2018 19:20:55 +0000 (14:20 -0500)
commit8d3b4ca591090a5ab3b5940f43a86866f2f5b9bc
treef443b63e9fd513faa06a4cb66e13cd367d6fe598
parent43e70324188e483c8c0e3cef479db8a2bf425dd3
osd/PG: reset PG peering if osd transitions from down -> up

Consider a PG that is stray and ends up in ReplicaActive (because it is
participating as a recovery source).  If it is marked down wrongly and
then comes back up, then the PG will not reset, because there was not
an interval change (the PG is not part of the up or acting sets).
This can leave the PG in an odd state, leading to questionable behavior.
(For example, a stray might be in ReplicaActive and then ignore some
types of query messages.)

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc