Skip to content

Commit

Permalink
ddl: remove useless error log (#41107)
Browse files Browse the repository at this point in the history
close #41106
  • Loading branch information
zimulala authored Feb 6, 2023
1 parent e0e73ae commit 2b995ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ddl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ go_library(
"//util/filter",
"//util/gcutil",
"//util/generic",
"//util/gpool",
"//util/gpool/spmc",
"//util/hack",
"//util/intest",
Expand Down
3 changes: 2 additions & 1 deletion ddl/dist_backfilling.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/pingcap/tidb/table"
"github.com/pingcap/tidb/util"
"github.com/pingcap/tidb/util/dbterror"
"github.com/pingcap/tidb/util/gpool"
"github.com/pingcap/tidb/util/gpool/spmc"
"github.com/pingcap/tidb/util/logutil"
"go.uber.org/zap"
Expand Down Expand Up @@ -258,7 +259,7 @@ func GetTasks(d *ddlCtx, sess *session, tbl table.Table, runningJobID int64, con
// TODO: add test: if all tidbs can't get the unmark backfill job(a tidb mark a backfill job, other tidbs returned, then the tidb can't handle this job.)
if dbterror.ErrDDLJobNotFound.Equal(err) {
logutil.BgLogger().Info("no backfill job, handle backfill task finished")
return nil, err
return nil, gpool.ErrProducerClosed
}
if kv.ErrWriteConflict.Equal(err) {
logutil.BgLogger().Info("GetAndMarkBackfillJobsForOneEle failed", zap.Error(err))
Expand Down

0 comments on commit 2b995ed

Please sign in to comment.