Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: BR 备份 checksum 失败导致备份失败
[TiDB Usage Environment]
Production Environment
[TiDB Version]
v5.4.0
[Reproduction Path]
Use the command to back up the database
br backup full \
--pd 10.0.7.114:2379 \
--storage s3://[******]/data_2022-11-21-17-48?access-key=[******]&secret-access-key=[******] \
--s3.region ap-guangzhou \
--s3.endpoint http://cos.ap-guangzhou.myqcloud.com \
--send-credentials-to-tikv=true \
--ratelimit 128 \
--log-file /data/[******]/tidb/tidb_br_home/log/data_2022-11-21-17-48_backuptable.log
[Encountered Problem: Problem Phenomenon and Impact]
Backup failed, error message
[2022/11/21 14:57:04.487 +08:00] [ERROR] [global.go:46] ["checksum mismatch"] [db=lucifer-cn] [table=PlayerItems] ["origin tidb crc64"=1126378096669210666] ["calculated crc64"=6933529848215176403] ["origin tidb total kvs"=12480622] ["calculated total kvs"=12480621] ["origin tidb total bytes"=698822936] ["calculated total bytes"=698822898] [stack="github.com/pingcap/log.Error
\t/go/pkg/mod/github.com/pingcap/log@v1.1.1-0.20221015072633-39906604fb81/global.go:46
github.com/pingcap/tidb/br/pkg/checksum.FastChecksum
\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/checksum/validate.go:70
github.com/pingcap/tidb/br/pkg/task.RunBackup
\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/task/backup.go:550
main.runBackupCommand
\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/cmd/br/backup.go:48
main.newFullBackupCommand.func1
\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/cmd/br/backup.go:117
github.com/spf13/cobra.(*Command).execute
\t/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:872
github.com/spf13/cobra.(*Command).ExecuteC
\t/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990
github.com/spf13/cobra.(*Command).Execute
\t/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918
main.main
\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/cmd/br/main.go:57
runtime.main
\t/usr/local/go/src/runtime/proc.go:250"]