]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PeeringState: do not start renewing leases until PG is activated 33129/head
authorSage Weil <sage@redhat.com>
Fri, 7 Feb 2020 16:33:26 +0000 (10:33 -0600)
committerSage Weil <sage@redhat.com>
Thu, 13 Feb 2020 19:24:46 +0000 (13:24 -0600)
commit71b5b39220b5f69995faffad1ef6992db6a337df
tree18832bba23b5789b9c578f2abac9ebb4fe84602e
parent3fe229e9815525b975571bba116e65e1c052921e
osd/PeeringState: do not start renewing leases until PG is activated

The activate() work renews the lease so that we can send lease info out
to the peers immediately.  However, these messages may get delayed.  Since
we immediately start scheduling renewals, it's possible for the renewal
to go out before the PG is active, crashing the replicas.

Fix by not scheduling renewals until the PG is really active.

Also, renew aggressively at that point in time, since it may have been a
while since we first started the activation.

Fixes: https://tracker.ceph.com/issues/44041
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PeeringState.cc