From 2f4f7328d041fb8470317e2b5b1dd294f2f5116d Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Fri, 25 Nov 2022 15:58:23 +0800 Subject: [PATCH] etcdserver: intentionally set the memberID as 0 in corruption alarm Signed-off-by: Benjamin Wang --- etcdserver/corrupt.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etcdserver/corrupt.go b/etcdserver/corrupt.go index 0c696cefbc9..e66848dac40 100644 --- a/etcdserver/corrupt.go +++ b/etcdserver/corrupt.go @@ -207,8 +207,12 @@ func (s *EtcdServer) checkHashKV() error { return } alarmed = true + // It isn't clear which member's data is corrupted, so we + // intentionally set the memberID as 0. We will identify + // the corrupted members using quorum in 3.6. Please see + // discussion in https://github.com/etcd-io/etcd/pull/14828. a := &pb.AlarmRequest{ - MemberID: uint64(id), + MemberID: 0, Action: pb.AlarmRequest_ACTIVATE, Alarm: pb.AlarmType_CORRUPT, }