-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
- create a cluster with tidb configure split-table=false
- wait and check region by pd-ctl, ensure only one region existed in cluster
- volume snapshot backup the cluster (only one region with startKey="" and endKey="")
- create a restore cluster with recoveryMode: true
- create a volume-snapshot restore
for details refer to
backup https://docs.pingcap.com/zh/tidb-in-kubernetes/stable/backup-to-aws-s3-by-snapshot
restore https://docs.pingcap.com/zh/tidb-in-kubernetes/stable/restore-from-aws-s3-by-snapshot
2. What did you expect to see? (Required)
restore shall success
3. What did you see instead (Required)
the 2nd restore failure with error
I0205 02:25:43.331325 9 restore.go:164] [2023/02/05 02:25:43.330 +00:00] [ERROR] [restore.go:51] ["failed to restore data"] [error="receive Regions with no peer"] [errorVerbose="receive Regions with no peer\ngithub.com/tikv/cli ent-go/v2/internal/locate.(*RegionCache).scanRegions\n\t/home/ophone/dev/client-go/internal/locate/region_cache.go:1605\ngithub.com/tikv/client-go/v2/internal/locate.(*RegionCache).BatchLoadRegionsWithKeyRange\n\t/home/ophone/dev/cli ent-go/internal/locate/region_cache.go:1194\ngithub.com/tikv/client-go/v2/internal/locate.(*RegionCache).BatchLoadRegionsFromKey\n\t/home/ophone/dev/client-go/internal/locate/region_cache.go:1219\ngithub.com/tikv/client-go/v2/txnkv/r angetask.(*Runner).RunOnRange\n\t/home/ophone/dev/client-go/txnkv/rangetask/range_task.go:191\ngithub.com/pingcap/tidb/br/pkg/restore.(*Recovery).PrepareFlashbackToVersion.func1\n\t/home/ophone/dev/tidb/br/pkg/restore/data.go:315\ngi thub.com/pingcap/tidb/br/pkg/utils.WithRetry\n\t/home/ophone/dev/tidb/br/pkg/utils/retry.go:52\ngithub.com/pingcap/tidb/br/pkg/restore.(*Recovery).PrepareFlashbackToVersion\n\t/home/ophone/dev/tidb/br/pkg/restore/data.go:305
4. What is your TiDB version? (Required)
v6.5.0 GA and late