]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: handle boot racing with NOUP set 9101/head
authorSage Weil <sage@redhat.com>
Tue, 3 May 2016 03:28:18 +0000 (23:28 -0400)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Wed, 8 Jun 2016 09:34:51 +0000 (15:04 +0530)
commitadfbe9554be2cb79a6cbccc7c4a556139b4aed50
treed29d63c164166279b111b457a6f24a81770318b4
parentd93a90ec2743c9aec229891c3b0da72b038cffad
osd: handle boot racing with NOUP set

This is a follow-on to 7139a232d26beef441ffbc13bc087baab3505ea8,
which handled the NOUP set + clear case when the OSD found out
about the flag being cleared.  However, it's possible that the
flag will get cleared but the OSD won't get a map update (because
it hasn't subscribed and is not doing any work).

This means that it is *more* likely than before that we will
restart the boot process even though the OSD did successfully
mark us up.  However, as before, it is unavoidable because there
is no notification of whether our boot request succeeds or not.

And it is still mostly harmless (an extra mark down + up cycle).

Fixes: http://tracker.ceph.com/issues/15678
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 11e4242fbdb2f2f6f654d4cb3a7c95d5b38a88c2)
src/osd/OSD.cc