Skip to content

br restore failed with error “region 714153's leader's store id is 0” when pd rolling restart #53724

@Lily2025

Description

@Lily2025

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

1、br restore
2、pd rolling restart

2. What did you expect to see? (Required)

br restore success

3. What did you see instead (Required)

br restore failed
error="region 714153's leader's store id is 0: [BR:PD:ErrPDBatchScanRegion]batch scan region; region 714153's leader's store id is 0: [BR:PD:ErrPDBatchScanRegion]batch scan region; region 714153's leader's store id is 0: [BR:PD:ErrPDBatchScanRegion]batch scan region; region 714153's leader's store id is 0: [BR:PD:ErrPDBatchScanRegion]batch scan region"] [errorVerbose="the following errors occurred:\n - [BR:PD:ErrPDBatchScanRegion]batch scan region\n region 714153's leader's store id is 0\n github.com/pingcap/tidb/br/pkg/restore/split.CheckRegionConsistency\n \t/workspace/source/tidb/br/pkg/restore/split/split.go:76\n github.com/pingcap/tidb/br/pkg/restore/split.PaginateScanRegion.func1\n \t/workspace/source/tidb/br/pkg/restore/split/split.go:147\n github.com/pingcap/tidb/br/pkg/utils.WithRetry.func1\n \t/workspace/source/tidb/br/pkg/utils/retry.go:217\n github.com/pingcap/tidb/br/pkg/utils.WithRetryV2[...]\n \t/workspace/source/tidb/br/pkg/utils/retry.go:235\n github.com/pingcap/tidb/br/pkg/utils.WithRetry\n \t/workspace/source/tidb/br/pkg/utils/retry.go:216\n github.com/pingcap/tidb/br/pkg/restore/split.PaginateScanRegion\n \t/workspace/source/tidb/br/pkg/restore/split/split.go:117\n github.com/pingcap/tidb/br/pkg/restore.(*FileImporter).ImportSSTFiles.func1\n \t/workspace/source/tidb/br/pkg/restore/import.go:548\n github.com/pingcap/tidb/br/pkg/utils.WithRetry.func1\n \t/workspace/source/tidb/br/pkg/utils/retry.go:217\n github.com/pingcap/tidb/br/pkg/utils.WithRetryV2[...]\n \t/workspace/source/tidb/br/pkg/utils/retry.go:235\n github.com/pingcap/tidb/br/pkg/utils.WithRetry\n \t/workspace/source/tidb/br/pkg/utils/retry.go:216\n github.com/pingcap/tidb/br/pkg/restore.(*FileImporter).ImportSSTFiles\n \t/workspace/source/tidb/br/pkg/restore/import.go:544\n github.com/pingcap/tidb/br/pkg/restore.(*Client).RestoreSSTFiles.func2.1\n \t/workspace/source/tidb/br/pkg/restore/client.go:1458\n github.com/pingcap/tidb/br/pkg/restore.(*Client).RestoreSSTFiles.func2\n \t/workspace/source/tidb/br/pkg/restore/client.go:1459\n github.com/pingcap/tidb/br/pkg/utils.(*WorkerPool).ApplyOnErrorGroup.func1\n \t/workspace/source/tidb/br/pkg/utils/worker.go:76\n golang.org/x/sync/errgroup.(*Group).Go.func1\n \t/root/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75\n runtime.goexit\n \t/usr/local/go/src/runtime/asm_amd64.s:1650\n - [BR:PD:ErrPDBatchScanRegion]batch scan region\n region 714153's leader's store id is 0\n github.com/pingcap/tidb/br/pkg/restore/split.CheckRegionConsistency\n \t/workspace/source/tidb/br/pkg/restore/split/split.go:76\n github.com/pingcap/tidb/br/pkg/restore/split.PaginateScanRegion.func1\n \t/workspace/source/tidb/br/pkg/restore/split/split.go:147\n github.com/pingcap/tidb/br/pkg/utils.WithRetry.func1\n \t/workspace/source/tidb/br/pkg/utils/retry.go:217\n github.com/pingcap/tidb/br/pkg/utils.WithRetryV2[...]\n \t/workspace/source/tidb/br/pkg/utils/retry.go:235\n github.com/pingcap/tidb/br/pkg/utils.WithRetry\n \t/workspace/source/tidb/br/pkg/utils/retry.go:216\n github.com/pingcap/tidb/br/pkg/restore/split.PaginateScanRegion\n \t/workspace/source/tidb/br/pkg/restore/split/split.go:117\n github.com/pingcap/tidb/br/pkg/restore.(*FileImporter).ImportSSTFiles.func1\n \t/workspace/source/tidb/br/pkg/restore/import.go:548\n github.com/pingcap/tidb/br/pkg/utils.WithRetry.func1\n \t/workspace/source/tidb/br/pkg/utils/retry.go:217\n github.com/pingcap/tidb/br/pkg/utils.WithRetryV2[...]\n \t/workspace/source/tidb/br/pkg/utils/retry.go:235\n github.com/pingcap/tidb/br/pkg/utils.WithRetry\n \t/workspace/source/tidb/br/pkg/utils/retry.go:216\n github.com/pingcap/tidb/br/pkg/restore.(*FileImporter).ImportSSTFiles\n \t/workspace/source/tidb/br/pkg/restore/import.go:544\n github.com/pingcap/tidb/br/pkg/restore.(*Client).RestoreSSTFiles.func2.1\n \t/workspace/source/tidb/br/pkg/restore/client.go:1458\n github.com/pingcap/tidb/br/pkg/restore.(*Client).RestoreSSTFiles.func2\n \t/workspace/source/tidb/br/pkg/restore/client.go:1459\n github.com/pingcap/tidb/br/pkg/utils.(*WorkerPool).ApplyOnErrorGroup.func1\n \t/workspace/source/tidb/br/pkg/utils/worker.go:76\n golang.org/x/sync/errgroup.(*Group).Go.func1\n \t/root/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75\n runtime.goexit\n \t/usr/local/go/src/runtime/asm_amd64.s:1650\n - [BR:PD:ErrPDBatchScanRegion]batch scan region\n region 714153's leader's store id is 0\n github.com/pingcap/tidb/br/pkg/restore/split.CheckRegionConsistency\n \t/workspace/source/tidb/br/pkg/restore/split/split.go:76\n github.com/pingcap/tidb/br/pkg/restore/split.PaginateScanRegion.func1\n \t/workspace/source/tidb/br/pkg/restore/split/split.go:147\n github.com/pingcap/tidb/br/pkg/utils.WithRetry.func1\n \t/workspace/source/tidb/br/pkg/utils/retry.go:217\n github.com/pingcap/tidb/br/pkg/utils.WithRetryV2[...]\n \t/workspace/source/tidb/br/pkg/utils/retry.go:235\n github.com/pingcap/tidb/br/pkg/utils.WithRetry\n \t/workspace/source/tidb/br/pkg/utils/retry.go:216\n github.com/pingcap/tidb/br/pkg/restore/split.PaginateScanRegion\n \t/workspace/source/tidb/br/pkg/restore/split/split.go:117\n github.com/pingcap/tidb/br/pkg/restore.(*FileImporter).ImportSSTFiles.func1\n \t/workspace/source/tidb/br/pkg/restore/import.go:548\n github.com/pingcap/tidb/br/pkg/utils.WithRetry.func1\n \t/workspace/source/tidb/br/pkg/utils/retry.go:217\n github.com/pingcap/tidb/br/pkg/utils.WithRetryV2[...]\n \t/workspace/source/tidb/br/pkg/utils/retry.go:235\n github.com/pingcap/tidb/br/pkg/utils.WithRetry\n \t/workspace/source/tidb/br/pkg/utils/retry.go:216\n github.com/pingcap/tidb/br/pkg/restore.(*FileImporter).ImportSSTFiles\n \t/workspace/source/tidb/br/pkg/restore/import.go:544\n github.com/pingcap/tidb/br/pkg/restore.(*Client).RestoreSSTFiles.func2.1\n \t/workspace/source/tidb/br/pkg/restore/client.go:1458\n github.com/pingcap/tidb/br/pkg/restore.(*Client).RestoreSSTFiles.func2\n \t/workspace/source/tidb/br/pkg/restore/client.go:1459\n github.com/pingcap/tidb/br/pkg/utils.(*WorkerPool).ApplyOnErrorGroup.func1\n \t/workspace/source/tidb/br/pkg/utils/worker.go:76\n golang.org/x/sync/errgroup.(*Group).Go.func1\n \t/root/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75\n runtime.goexit\n \t/usr/local/go/src/runtime/asm_amd64.s:1650\n - [BR:PD:ErrPDBatchScanRegion]batch scan region\n region 714153's leader's store id is 0\n github.com/pingcap/tidb/br/pkg/restore/split.CheckRegionConsistency\n \t/workspace/source/tidb/br/pkg/restore/split/split.go:76\n github.com/pingcap/tidb/br/pkg/restore/split.PaginateScanRegion.func1\n \t/workspace/source/tidb/br/pkg/restore/split/split.go:147\n github.com/pingcap/tidb/br/pkg/utils.WithRetry.func1\n \t/workspace/source/tidb/br/pkg/utils/retry.go:217\n github.com/pingcap/tidb/br/pkg/utils.WithRetryV2[...]\n \t/workspace/source/tidb/br/pkg/utils/retry.go:235\n github.com/pingcap/tidb/br/pkg/utils.WithRetry\n \t/workspace/source/tidb/br/pkg/utils/retry.go:216\n github.com/pingcap/tidb/br/pkg/restore/split.PaginateScanRegion\n \t/workspace/source/tidb/br/pkg/restore/split/split.go:117\n github.com/pingcap/tidb/br/pkg/restore.(*FileImporter).ImportSSTFiles.func1\n \t/workspace/source/tidb/br/pkg/restore/import.go:548\n github.com/pingcap/tidb/br/pkg/utils.WithRetry.func1\n \t/workspace/source/tidb/br/pkg/utils/retry.go:217\n github.com/pingcap/tidb/br/pkg/utils.WithRetryV2[...]\n \t/workspace/source/tidb/br/pkg/utils/retry.go:235\n github.com/pingcap/tidb/br/pkg/utils.WithRetry\n \t/workspace/source/tidb/br/pkg/utils/retry.go:216\n github.com/pingcap/tidb/br/pkg/restore.(*FileImporter).ImportSSTFiles\n \t/workspace/source/tidb/br/pkg/restore/import.go:544\n github.com/pingcap/tidb/br/pkg/restore.(*Client).RestoreSSTFiles.func2.1\n \t/workspace/source/tidb/br/pkg/restore/client.go:1458\n github.com/pingcap/tidb/br/pkg/restore.(*Client).RestoreSSTFiles.func2\n \t/workspace/source/tidb/br/pkg/restore/client.go:1459\n github.com/pingcap/tidb/br/pkg/utils.(*WorkerPool).ApplyOnErrorGroup.func1\n \t/workspace/source/tidb/br/pkg/utils/worker.go:76\n golang.org/x/sync/errgroup.(*Group).Go.func1\n \t/root/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75\n runtime.goexit\n \t/usr/local/go/src/runtime/asm_amd64.s:1650"] Error: region 714153's leader's store id is 0: [BR:PD:ErrPDBatchScanRegion]batch scan region; region 714153's leader's store id is 0: [BR:PD:ErrPDBatchScanRegion]batch scan region; region 714153's leader's store id is 0: [BR:PD:ErrPDBatchScanRegion]batch scan region; region 714153's leader's store id is 0: [BR:PD:ErrPDBatchScanRegion]batch scan region

4. What is your TiDB version? (Required)

tidb version:
./tidb-server -V
Release Version: v7.5.2
Edition: Community
Git Commit Hash: 39ea2b3
Git Branch: HEAD
UTC Build Time: 2024-05-29 15:07:12
GoVersion: go1.21.10
Race Enabled: false
Check Table Before Drop: false
Store: unistore
2024-05-30T14:14:32.686+0800

Metadata

Metadata

Assignees

Labels

affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.component/brThis issue is related to BR of TiDB.severity/majortype/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions