Skip to content

Commit

Permalink
local backend: fix log been eaten when failed on execute region job (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Nov 2, 2023
1 parent 699227f commit a2e8ab3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion br/pkg/lightning/backend/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,10 @@ func (local *Backend) doImport(ctx context.Context, engine *Engine, regionRanges
if err != nil {
firstErr.Set(err)
workerCancel()
_ = workGroup.Wait()
err2 := workGroup.Wait()
if !common.IsContextCanceledError(err2) {
log.FromContext(ctx).Error("worker meets error", zap.Error(err2))
}
return firstErr.Get()
}

Expand Down

0 comments on commit a2e8ab3

Please sign in to comment.