Skip to content

Commit

Permalink
Merge pull request #12211 from tangcong/ignore-errcompacted
Browse files Browse the repository at this point in the history
etcdserver: ignore ErrCompacted error
  • Loading branch information
gyuho authored Aug 12, 2020
2 parents fe36be2 + afa0e81 commit 8c44d25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etcdserver/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (a *applierV3backend) Apply(r *pb.InternalRaftRequest) *applyResult {
ar := &applyResult{}
defer func(start time.Time) {
warnOfExpensiveRequest(a.s.getLogger(), start, &pb.InternalRaftStringer{Request: r}, ar.resp, ar.err)
if ar.err != nil {
if ar.err != nil && ar.err != mvcc.ErrCompacted {
warnOfFailedRequest(a.s.getLogger(), start, &pb.InternalRaftStringer{Request: r}, ar.resp, ar.err)
}
}(time.Now())
Expand Down

0 comments on commit 8c44d25

Please sign in to comment.