Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

br: extend the timeout for scan region since 3 seconds is not enough #30889

Merged
merged 26 commits into from
Dec 23, 2021
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
cc5c8d5
fix issue 27015
fengou1 Sep 27, 2021
65ccd96
Merge branch 'master' into issue_27015
fengou1 Sep 27, 2021
bd531c8
fix comments - add general function isRetryableError
fengou1 Sep 28, 2021
a3b0df0
Merge branch 'issue_27015' of https://github.com/fengou1/tidb into is…
fengou1 Sep 28, 2021
c1ddff9
Merge branch 'master' into issue_27015
fengou1 Sep 28, 2021
0fbd620
remote uncessary package errors
fengou1 Sep 28, 2021
0f1976c
Merge branch 'issue_27015' of https://github.com/fengou1/tidb into is…
fengou1 Sep 28, 2021
6dcdbdb
reused the retry code from lightning
fengou1 Sep 29, 2021
fe147b9
Merge branch 'master' into issue_27015
fengou1 Sep 29, 2021
8dcda02
Merge branch 'master' into issue_27015
fengou1 Oct 7, 2021
e97b450
refactoring retryable
fengou1 Oct 7, 2021
a825bea
Merge branch 'master' into issue_27015
fengou1 Oct 9, 2021
440cdf5
Merge branch 'master' into issue_27015
fengou1 Oct 12, 2021
be50b96
rebase
fengou1 Oct 21, 2021
610beaa
Merge branch 'master' of https://github.com/pingcap/tidb
fengou1 Oct 23, 2021
f0ce332
Merge branch 'pingcap:master' into master
fengou1 Dec 16, 2021
f1a9ecf
Merge branch 'master' of https://github.com/pingcap/tidb
fengou1 Dec 16, 2021
e62ae0b
Merge branch 'master' of https://github.com/fengou1/tidb
fengou1 Dec 16, 2021
9d4c2c6
Merge branch 'pingcap:master' into issue_30720
fengou1 Dec 20, 2021
07535c0
extend scan region
fengou1 Dec 22, 2021
06dbe83
Merge branch 'master' into issue_30720
fengou1 Dec 22, 2021
ea225b1
Merge branch 'master' into issue_30720
fengou1 Dec 23, 2021
4c5fb25
Merge branch 'master' into issue_30720
ti-chi-bot Dec 23, 2021
36d6479
Merge branch 'master' into issue_30720
ti-chi-bot Dec 23, 2021
a1c884a
Merge branch 'master' into issue_30720
ti-chi-bot Dec 23, 2021
0bd2053
Merge branch 'master' into issue_30720
ti-chi-bot Dec 23, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions br/pkg/restore/split.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,14 +455,14 @@ type scanRegionBackoffer struct {

func newScanRegionBackoffer() utils.Backoffer {
return &scanRegionBackoffer{
attempt: 3,
attempt: 30,
}
}

// NextBackoff returns a duration to wait before retrying again
func (b *scanRegionBackoffer) NextBackoff(err error) time.Duration {
if berrors.ErrPDBatchScanRegion.Equal(err) {
// 500ms * 3 could be enough for splitting remain regions in the hole.
// 500ms * 30 could be enough for splitting remain regions in the hole.
b.attempt--
return 500 * time.Millisecond
}
Expand Down