From 46d59a2e689e432c6ddb68154992f71086a9a122 Mon Sep 17 00:00:00 2001 From: Dat Tien Nguyen Date: Mon, 4 Mar 2024 21:03:40 +0700 Subject: [PATCH] etcdserver: skip when detect a removed peer Signed-off-by: Dat Tien Nguyen --- server/etcdserver/raft.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/etcdserver/raft.go b/server/etcdserver/raft.go index 2a315ea5865..d397612af9c 100644 --- a/server/etcdserver/raft.go +++ b/server/etcdserver/raft.go @@ -347,6 +347,7 @@ func (r *raftNode) processMessages(ms []raftpb.Message) []raftpb.Message { for i := len(ms) - 1; i >= 0; i-- { if r.isIDRemoved(ms[i].To) { ms[i].To = 0 + continue } if ms[i].Type == raftpb.MsgAppResp {