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

DM job master meets unexpected end of JSON input error can't recover #7691

Closed
amyangfei opened this issue Nov 23, 2022 · 1 comment · Fixed by #7689
Closed

DM job master meets unexpected end of JSON input error can't recover #7691

amyangfei opened this issue Nov 23, 2022 · 1 comment · Fixed by #7689
Labels
area/engine Issues or PRs related to Dataflow Engine. severity/minor type/bug The issue is confirmed as a bug.

Comments

@amyangfei
Copy link
Contributor

What did you do?

  • run a DM full mode job on single executor

What did you expect to see?

No response

What did you see instead?

job master keeps meeting following error

[2022/11/22 11:41:55.873 +00:00] [INFO] [task_runner.go:187] ["Task Closed"] [id=41207] [error="unexpected end of JSON input"] [errorVerbose="unexpected end of JSON input\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20220729040631-518f63d66278/errors.go:174\ngithub.com/pingcap/errors.Trace\n\tgithub.com/pingcap/errors@v0.11.5-0.20220729040631-518f63d66278/juju_adaptor.go:15\ngithub.com/pingcap/tiflow/engine/framework.(*DefaultBaseJobMaster).Poll\n\tgithub.com/pingcap/tiflow/engine/framework/base_jobmaster.go:229\ngithub.com/pingcap/tiflow/engine/framework/internal/eventloop.(*Runner[...]).doRun\n\tgithub.com/pingcap/tiflow/engine/framework/internal/eventloop/runner.go:94\ngithub.com/pingcap/tiflow/engine/framework/internal/eventloop.(*Runner[...]).Run\n\tgithub.com/pingcap/tiflow/engine/framework/internal/eventloop/runner.go:57\ngithub.com/pingcap/tiflow/engine/executor/worker.(*TaskRunner).launchTask.func1\n\tgithub.com/pingcap/tiflow/engine/executor/worker/task_runner.go:203\nruntime.goexit\n\truntime/asm_amd64.s:1594"] [runtime-task-count=2]                                                                                                              [2022/11/22 11:41:55.873 +00:00] [INFO] [task_runner.go:204] ["Task stopped"] [id=41207] [error="unexpected end of JSON input"] [errorVerbose="unexpected end of JSON input\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20220729040631-518f63d66278/errors.go:174\ngithub.com/pingcap/errors.Trace\n\tgithub.com/pingcap/errors@v0.11.5-0.20220729040631-518f63d66278/juju_adaptor.go:15\ngithub.com/pingcap/tiflow/engine/framework.(*DefaultBaseJobMaster).Poll\n\tgithub.com/pingcap/tiflow/engine/framework/base_jobmaster.go:229\ngithub.com/pingcap/tiflow/engine/framework/internal/eventloop.(*Runner[...]).doRun\n\tgithub.com/pingcap/tiflow/engine/framework/internal/eventloop/runner.go:94\ngithub.com/pingcap/tiflow/engine/framework/internal/eventloop.(*Runner[...]).Run\n\tgithub.com/pingcap/tiflow/engine/framework/internal/eventloop/runner.go:57\ngithub.com/pingcap/tiflow/engine/executor/worker.(*TaskRunner).launchTask.func1\n\tgithub.com/pingcap/tiflow/engine/executor/worker/task_runner.go:203\nruntime.goexit\n\truntime/asm_amd64.s:1594"]

detail logs:
unexpected_json.log

Versions of the cluster

Dataflow Engine version (run tiflow version):

master@01ac379

@amyangfei amyangfei added type/bug The issue is confirmed as a bug. severity/minor area/engine Issues or PRs related to Dataflow Engine. labels Nov 23, 2022
@amyangfei
Copy link
Contributor Author

unexpected end of JSON input was caused by OnWorkerOnline was called before UpdateStatus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/engine Issues or PRs related to Dataflow Engine. severity/minor type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant