Skip to content

Commit

Permalink
log worker error
Browse files Browse the repository at this point in the history
  • Loading branch information
D3Hunter committed Oct 19, 2023
1 parent d74298c commit 2698ed3
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 @@ -1692,7 +1692,10 @@ func (local *Backend) doImport(ctx context.Context, engine common.Engine, region
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 2698ed3

Please sign in to comment.