为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【 TiDB 使用环境】
TiDB v4.0.9
BR v4.0.9
【概述】 场景 + 问题概述
使用 BR 命令行备份集群数据,然后恢复集群到另一个集群环境。
【备份和数据迁移策略逻辑】
【背景】 做过哪些操作
【现象】 业务和数据库现象
【问题】 当前遇到的问题
Error: failed to validate checksum: [BR:Restore:ErrRestoreChecksumMismatch]restore checksum mismatch
【业务影响】
【TiDB 版本】
【附件】
- 相关日志、配置文件、Grafana 监控(https://metricstool.pingcap.com/)
- TiUP Cluster Display 信息
- TiUP CLuster Edit config 信息
- TiDB-Overview 监控
- 对应模块的 Grafana 监控(如有 BR、TiDB-binlog、TiCDC 等)
- 对应模块日志(包含问题前后 1 小时日志)
报错日志:
[2021/12/29 22:20:23.856 +00:00] [INFO] [domain.go:622] [“domain closed”] [“take time”=7.982087774s]
[2021/12/29 22:20:23.863 +00:00] [INFO] [collector.go:188] [“Database restore Failed summary : total restore files: 4803, total success: 4803, total failed: 0”] [“split region”=2h46m46.681634392s] [“restore checksum”=42h48m33.103512213s] [“restore ranges”=4044] [Size=24012833189]
[2021/12/29 22:20:23.864 +00:00] [ERROR] [restore.go:24] [“failed to restore”] [error=“failed to validate checksum: [BR:Restore:ErrRestoreChecksumMismatch]restore checksum mismatch”] [errorVerbose=“[BR:Restore:ErrRestoreChecksumMismatch]restore checksum mismatch
failed to validate checksum
github.com/pingcap/br/pkg/restore.(*Client).execChecksum
\tgithub.com/pingcap/br@/pkg/restore/client.go:796
github.com/pingcap/br/pkg/restore.(*Client).GoValidateChecksum.func1.2
\tgithub.com/pingcap/br@/pkg/restore/client.go:742
github.com/pingcap/br/pkg/utils.(*WorkerPool).ApplyOnErrorGroup.func1
\tgithub.com/pingcap/br@/pkg/utils/worker.go:63
golang.org/x/sync/errgroup.(*Group).Go.func1
\tgolang.org/x/sync@v0.0.0-20201020160332-67f06af15bc9/errgroup/errgroup.go:57
runtime.goexit
\truntime/asm_amd64.s:1357”] [stack=“github.com/pingcap/br/cmd.runRestoreCommand
\tgithub.com/pingcap/br@/cmd/restore.go:24
github.com/pingcap/br/cmd.newDBRestoreCommand.func1
\tgithub.com/pingcap/br@/cmd/restore.go:106
github.com/spf13/cobra.(*Command).execute
\tgithub.com/spf13/cobra@v1.0.0/command.go:842
github.com/spf13/cobra.(*Command).ExecuteC
\tgithub.com/spf13/cobra@v1.0.0/command.go:950
github.com/spf13/cobra.(*Command).Execute
\tgithub.com/spf13/cobra@v1.0.0/command.go:887
main.main
\tgithub.com/pingcap/br@/main.go:58
runtime.main
\truntime/proc.go:203”]
[2021/12/29 22:20:23.864 +00:00] [ERROR] [main.go:59] [“br failed”] [error=“failed to validate checksum: [BR:Restore:ErrRestoreChecksumMismatch]restore checksum mismatch”] [errorVerbose=“[BR:Restore:ErrRestoreChecksumMismatch]restore checksum mismatch
failed to validate checksum
github.com/pingcap/br/pkg/restore.(*Client).execChecksum
\tgithub.com/pingcap/br@/pkg/restore/client.go:796
github.com/pingcap/br/pkg/restore.(*Client).GoValidateChecksum.func1.2
\tgithub.com/pingcap/br@/pkg/restore/client.go:742
github.com/pingcap/br/pkg/utils.(*WorkerPool).ApplyOnErrorGroup.func1
\tgithub.com/pingcap/br@/pkg/utils/worker.go:63
golang.org/x/sync/errgroup.(*Group).Go.func1
\tgolang.org/x/sync@v0.0.0-20201020160332-67f06af15bc9/errgroup/errgroup.go:57
runtime.goexit
\truntime/asm_amd64.s:1357”] [stack=“main.main
\tgithub.com/pingcap/br@/main.go:59
runtime.main
\truntime/proc.go:203”]
若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。