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
D3Hunter authored Oct 19, 2023
1 parent af7b32c commit 0a81d6b
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 0a81d6b

Please sign in to comment.