From 9a07a50c5b1655f14cb5208f136fb5fd4647269d Mon Sep 17 00:00:00 2001 From: Xuecheng Zhang Date: Thu, 5 Dec 2019 14:41:20 +0800 Subject: [PATCH] syncer: fix ignore canceled error (#401) --- syncer/syncer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/syncer/syncer.go b/syncer/syncer.go index b8c3c28e6b..8c2963eade 100644 --- a/syncer/syncer.go +++ b/syncer/syncer.go @@ -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() }