]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: drop stale failure_info even if can_mark_down() 41618/head
authorKefu Chai <kchai@redhat.com>
Tue, 25 May 2021 06:17:34 +0000 (14:17 +0800)
committerCory Snyder <csnyder@iland.com>
Tue, 1 Jun 2021 11:41:52 +0000 (07:41 -0400)
commitc14fd385e4ab64073b8dd880bc3d79c81b5e4545
treeef4307359828c271dd22ed31bc32c8cd4658bcc5
parentc44bc49e7a57a87d84dfff2a077a2058aa2172e2
mon/OSDMonitor: drop stale failure_info even if can_mark_down()

in a124ee85b03e15f4ea371358008ecac65f9f4e50, we add a check to drop
stale failure_info reports. but if osdmap does not prohibit us from
marking the osd in question down, the branch checking the stale info
is not executed. in general, it is allowed to mark an osd down, so
the fix of a124ee85b03e15f4ea371358008ecac65f9f4e50 just fails to
work.

in this change, we check for stale failure report of osd in question
as long as the osd is not marked down in the same function. this should
address the slow ops of failure report issue.

Fixes: https://tracker.ceph.com/issues/50964
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit df6916a56841f89d66fd211729a0a7adc13042cf)
src/mon/OSDMonitor.cc