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 Oct 20, 2023
1 parent 5514a9b commit dfc40e3
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 @@ -1693,7 +1693,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 dfc40e3

Please sign in to comment.