Skip to content

[Bug] [Master] When database restart or close, the workflow instance status will be incorrect. #10854

@ruanwenjun

Description

@ruanwenjun

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

I find when there is workflowInstance running, and the database restart. The workflow instance's status will be incorrect, it will be running all the time. This is due to when we receive the worker's response, we will update the taskInstance's meta, and update the database, but when we update database failed, we will not rollback the meta in memory, so the worker send response again, the master will skip the state, due to it think the state has already been handled.

What you expected to happen

The master can recover, when database restart.

How to reproduce

  1. Running 1000 workflowIntsance
  2. Restart database
  3. Find some workflowInstance will always be running

Anything else

No response

Version

dev

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

backendbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions