Merge pull request #14853 from ahrtr/remove_memberid_alarm_3.4_20221125

[3.4] etcdserver: intentionally set the memberID as 0 in corruption alarm
This commit is contained in:
Benjamin Wang 2022-11-25 17:01:02 +08:00 committed by GitHub
commit c619e2705e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
}