【 TiDB 使用环境】生产\测试环境\ POC
【 TiDB 版本】5.1.4 br v5.1.4
【遇到的问题】br 备份失败 (BR:Backup:ErrBackupNoLeader]backup no leader)
【复现路径】执行br备份:
【问题现象及影响】
【附件】
报错信息:
[2022/08/26 05:45:19.489 +08:00] [ERROR] [backup.go:41] [“failed to backup”] [error=“can not find leader: [BR:Backup:ErrBackupNoLeader]backup no leader”] [errorVerbose="[BR:Backup:ErrBackupNoLeader]backup no leader\
can not find leader\ngithub.com/pingcap/br/pkg/backup.(*Client).findRegionLeader\
\tgithub.com/pingcap/br/pkg/backup/client.go:547\
github.com/pingcap/br/pkg/backup.(*Client).handleFineGrained\
\tgithub.com/pingcap/br/pkg/backup/client.go:756\
github.com/pingcap/br/pkg/backup.(*Client).fineGrainedBackup.func2\
\tgithub.com/pingcap/br/pkg/backup/client.go:608\
runtime.goexit\
\truntime/asm_amd64.s:1371"] [stack=“main.runBackupCommand\
\tcommand-line-arguments/backup.go:41\
main.newFullBackupCommand.func1\
\tcommand-line-arguments/backup.go:109\ngithub.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\
\tcommand-line-arguments/main.go:56\
runtime.main\
\truntime/proc.go:225”]
[2022/08/26 05:45:19.489 +08:00] [ERROR] [main.go:58] [“br failed”] [error=“can not find leader: [BR:Backup:ErrBackupNoLeader]backup no leader”] [errorVerbose="[BR:Backup:ErrBackupNoLeader]backup no leader\
can not find leader\ngithub.com/pingcap/br/pkg/backup.(*Client).findRegionLeader\
\tgithub.com/pingcap/br/pkg/backup/client.go:547\
github.com/pingcap/br/pkg/backup.(*Client).handleFineGrained\
\tgithub.com/pingcap/br/pkg/backup/client.go:756\
github.com/pingcap/br/pkg/backup.(*Client).fineGrainedBackup.func2\
\tgithub.com/pingcap/br/pkg/backup/client.go:608\
runtime.goexit\
\truntime/asm_amd64.s:1371"] [stack=“main.main\
\tcommand-line-arguments/main.go:58\
runtime.main\
\truntime/proc.go:225”]
若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。