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 (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc authored Dec 5, 2019
1 parent 4a8423b commit 9a07a50
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 9a07a50

Please sign in to comment.