From b8a9226166bf0652c18699fa663fdfb924710b47 Mon Sep 17 00:00:00 2001 From: tier-cap Date: Thu, 21 Apr 2022 17:00:24 +0800 Subject: [PATCH] fix one bug about log append reject msg MsgUnreachable close tikv/tikv#11371 Signed-off-by: tier-cap --- components/raftstore/src/store/fsm/peer.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/raftstore/src/store/fsm/peer.rs b/components/raftstore/src/store/fsm/peer.rs index 74735f0ae3d..147a92c3bdd 100644 --- a/components/raftstore/src/store/fsm/peer.rs +++ b/components/raftstore/src/store/fsm/peer.rs @@ -2061,6 +2061,14 @@ where return Ok(()); } + if matches!(msg_type, MessageType::MsgUnreachable) { + self.fsm + .peer + .raft_group + .report_unreachable(msg.get_from_peer().get_id()); + return Ok(()); + } + if !self.validate_raft_msg(&msg) { return Ok(()); }