背景:
原集群表结构为聚簇索引,目标集群表结构为非聚簇索引,并提前做了share 和 spilt ,想重新导入一下,用 br 备份时不报错,但是导入时报错如下 ,tidb_enable_clustered_index 也设置成了 on
请教一下这是为啥
[2025/05/07 12:31:55.401 +08:00] [ERROR] [restore.go:64] [“failed to restore”] [error=“Clustered index option mismatch. Restored cluster’s @@tidb_enable_clustered_index should be ON (backup table = true, created table = false).: [BR:Restore:ErrRestoreModeMismatch]restore mode mismatch”] [errorVerbose=“[BR:Restore:ErrRestoreModeMismatch]restore mode mismatch\nClustered index option mismatch. Restored cluster’s @@tidb_enable_clustered_index should be ON (backup table = true, created table = false).\ngithub.com/pingcap/tidb/br/pkg/restore.(*Client).PreCheckTableClusterIndex\n\t/workspace/source/tidb/br/pkg/restore/client.go:2288\ngithub.com/pingcap/tidb/br/pkg/task.runRestore\n\t/workspace/source/tidb/br/pkg/task/restore.go:855\ngithub.com/pingcap/tidb/br/pkg/task.RunRestore\n\t/workspace/source/tidb/br/pkg/task/restore.go:623\nmain.runRestoreCommand\n\t/workspace/source/tidb/br/cmd/br/restore.go:63\nmain.newTableRestoreCommand.func1\n\t/workspace/source/tidb/br/cmd/br/restore.go:196\ngithub.com/spf13/cobra.(*Command).execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:940\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068\ngithub.com/spf13/cobra.(*Command).Execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992\nmain.main\n\t/workspace/source/tidb/br/cmd/br/main.go:58\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:267\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1650”] [stack=“main.runRestoreCommand\n\t/workspace/source/tidb/br/cmd/br/restore.go:64\nmain.newTableRestoreCommand.func1\n\t/workspace/source/tidb/br/cmd/br/restore.go:196\ngithub.com/spf13/cobra.(*Command).execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:940\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068\ngithub.com/spf13/cobra.(*Command).Execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992\nmain.main\n\t/workspace/source/tidb/br/cmd/br/main.go:58\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:267”]