Skip to content

Commit

Permalink
Merge pull request #14853 from ahrtr/remove_memberid_alarm_3.4_20221125
Browse files Browse the repository at this point in the history
[3.4] etcdserver: intentionally set the memberID as 0 in corruption alarm
  • Loading branch information
ahrtr authored Nov 25, 2022
2 parents f4bf538 + 2f4f732 commit c619e27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion etcdserver/corrupt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit c619e27

Please sign in to comment.