Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

br: pitr restore error:failed to restore meta files: invalid character 'p' looking for beginning of value #39575

Closed
AkiraXie opened this issue Dec 2, 2022 · 1 comment · Fixed by #39596
Assignees
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.

Comments

@AkiraXie
Copy link

AkiraXie commented Dec 2, 2022

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. br restore point

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

  1. no error

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

@AkiraXie AkiraXie added the type/bug The issue is confirmed as a bug. label Dec 2, 2022
@AkiraXie
Copy link
Author

AkiraXie commented Dec 2, 2022

/component br
/severity major

@ti-chi-bot ti-chi-bot added component/br This issue is related to BR of TiDB. severity/major may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 may-affects-6.3 may-affects-6.4 labels Dec 2, 2022
@joccau joccau self-assigned this Dec 2, 2022
@joccau joccau added affects-6.3 and removed may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 may-affects-6.3 may-affects-6.4 labels Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants