]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/OSD: prevent down osds from immediately rejoining the culster
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 3 Feb 2020 13:04:05 +0000 (21:04 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 3 Feb 2020 13:35:05 +0000 (21:35 +0800)
commitd08c1ff199f21e842dad6a55dc96fc1b00ca51cc
tree844014e78598b74e9899a9b624c2423aae1903d0
parent59db3379ae9c77358adc5e9f17aaa5e8462a036f
osd/OSD: prevent down osds from immediately rejoining the culster

In 114c65fc I posted a work-around to fix a heartbeat brain-split case
but it really looks to me now like I am missing some other cases where
an immediate attempt to rejoin is bad, like when the network actually
isn't working properly rather than being predictably manipulated by an
admin.
This patch instead slows the unconditionally rejoining attempt down,
especially make sure that we don't try to immediately rejoin the culster
when an osd has just been marked down by mon.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSD.cc