br: pitr restore error:failed to restore meta files: invalid character 'p' looking for beginning of value
#39575
Labels
affects-6.3
affects-6.4
affects-6.5
component/br
This issue is related to BR of TiDB.
severity/major
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
[2022/12/01 21:51:52.744 +00:00] [INFO] [collector.go:70] ["restore log failed summary"] [error="failed to restore meta files: invalid character 'p' looking for beginning of value"] [errorVerbose="invalid character 'p' looking for beginning of value\ngithub.com/pingcap/errors.AddStack\n\t/go/pkg/mod/github.com/pingcap/[email protected]/errors.go:174\ngithub.com/pingcap/errors.Trace\n\t/go/pkg/mod/github.com/pingcap/[email protected]/juju_adaptor.go:15\ngithub.com/pingcap/tidb/br/pkg/stream.(*SchemasReplace).rewriteDBInfo\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/stream/rewrite_meta_rawkv.go:150\ngithub.com/pingcap/tidb/br/pkg/stream.(*SchemasReplace).rewriteEntryForDB.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/stream/rewrite_meta_rawkv.go:186\ngithub.com/pingcap/tidb/br/pkg/stream.(*SchemasReplace).rewriteValueV2\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/stream/rewrite_meta_rawkv.go:468\ngithub.com/pingcap/tidb/br/pkg/stream.(*SchemasReplace).rewriteValue\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/stream/rewrite_meta_rawkv.go:490\ngithub.com/pingcap/tidb/br/pkg/stream.(*SchemasReplace).rewriteEntryForDB\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/stream/rewrite_meta_rawkv.go:182\ngithub.com/pingcap/tidb/br/pkg/stream.(*SchemasReplace).RewriteKvEntry\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/stream/rewrite_meta_rawkv.go:522\ngithub.com/pingcap/tidb/br/pkg/restore.(*Client).restoreMetaKvEntries\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/restore/client.go:2361\ngithub.com/pingcap/tidb/br/pkg/restore.(*Client).RestoreBatchMetaKVFiles\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/restore/client.go:2332\ngithub.com/pingcap/tidb/br/pkg/restore.(*Client).RestoreMetaKVFilesWithBatchMethod\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/restore/client.go:2262\ngithub.com/pingcap/tidb/br/pkg/restore.(*Client).RestoreMetaKVFiles\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/restore/client.go:2180\ngithub.com/pingcap/tidb/br/pkg/task.restoreStream.func4\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/task/stream.go:1188\ngithub.com/pingcap/tidb/br/pkg/task.withProgress\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/task/stream.go:1310\ngithub.com/pingcap/tidb/br/pkg/task.restoreStream\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/task/stream.go:1186\ngithub.com/pingcap/tidb/br/pkg/task.RunStreamRestore\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/task/stream.go:1072\ngithub.com/pingcap/tidb/br/pkg/task.RunRestore\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/task/restore.go:455\nmain.runRestoreCommand\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/cmd/br/restore.go:58\nmain.newStreamRestoreCommand.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/cmd/br/restore.go:197\ngithub.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:916\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044\ngithub.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:968\nmain.main\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/cmd/br/main.go:57\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1594\nfailed to restore meta files"]
4. What is your TiDB version? (Required)
/br --version
Release Version: v6.5.0-alpha
Git Commit Hash: 844ad32
Git Branch: heads/refs/tags/v6.5.0-alpha
Go Version: go1.19.3
UTC Build Time: 2022-11-26 11:07:12
Race Enabled: false
The text was updated successfully, but these errors were encountered: