Skip to content

Commit

Permalink
br: add error handling for group context cancel when restore file is …
Browse files Browse the repository at this point in the history
…corrupted (#30190)

close #30135
  • Loading branch information
fengou1 authored Dec 20, 2021
1 parent 24d970f commit e1fb2f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions br/pkg/restore/pipeline_items.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ func (b *tikvSender) restoreWorker(ctx context.Context, ranges <-chan drainResul
eg.Go(func() error {
e := b.client.RestoreFiles(ectx, files, r.result.RewriteRules, b.updateCh)
if e != nil {
r.done()
return e
}
log.Info("restore batch done", rtree.ZapRanges(r.result.Ranges))
Expand Down

0 comments on commit e1fb2f5

Please sign in to comment.