br: checksum is timedout when restore full-snapshot
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
- There are large mount of data in table need to restore, and the checksum failed because checksum is timedout.
### 2. What did you expect to see? (Required)
`Restore full` successfully.
### 3. What did you see instead (Required)
Failed to `restore full` with the error like this
```
[2022/11/23 19:33:38.951 +00:00] [ERROR] [restore.go:59] ["failed to restore"] [error="wait recvLoop: context deadline exceeded"] [errorVerbose="context deadline exceeded
wait recvLoop
github.com/pingcap/errors.AddStack
/go/pkg/mod/github.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174
github.com/pingcap/errors.Trace
/go/pkg/mod/github.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/juju_adaptor.go:15
github.com/pingcap/tidb/store/driver/error.ToTiDBErr
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/store/driver/error/error.go:169
github.com/pingcap/tidb/store/copr.(*copIteratorWorker).handleTaskOnce
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/store/copr/coprocessor.go:798
github.com/pingcap/tidb/store/copr.(*copIteratorWorker).handleTask
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/store/copr/coprocessor.go:708
github.com/pingcap/tidb/store/copr.(*copIteratorWorker).run
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/store/copr/coprocessor.go:449
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1594"] [stack="main.runRestoreCommand
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/cmd/br/restore.go:59
main.newStreamRestoreCommand.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/cmd/br/restore.go:197
github.com/spf13/cobra.(*Command).execute
/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:872
github.com/spf13/cobra.(*Command).ExecuteC
/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990
github.com/spf13/cobra.(*Command).Execute
/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918
main.main
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/cmd/br/main.go:57
runtime.main
```
### 4. What is your TiDB version? (Required)
TiDB: 6.3.0
Contributor guide
Assessment
This issue has not been assessed yet.