Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
syncer: fix ignore canceled error (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
sre-bot authored and csuzhangxc committed Dec 5, 2019
1 parent 3dd5fa5 commit cd0ceea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,9 @@ func (s *Syncer) sync(ctx *tcontext.Context, queueBucket string, db *DBConn, job

fatalF := func(err error, errType pb.ErrorType) {
s.execErrorDetected.Set(true)
s.runFatalChan <- unit.NewProcessError(errType, err)
if !utils.IsContextCanceledError(err) {
s.runFatalChan <- unit.NewProcessError(errType, err)
}
clearF()
}

Expand Down

0 comments on commit cd0ceea

Please sign in to comment.