dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Bug] [dolphinscheduler-api] can not find process or task instance of the old version after upgrading to 2.0.0

Open Eonchpy opened this issue 4 years ago • 4 comments

Search before asking

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

What happened

I successfully upgrade dolphinscheduler from 1.3.8 to 2.0.0, however when checking the result I found out that none process instance or task instance which submitted from the old version could be displayed, but actually they still exist in the database, the reason seems to be because in queryProcessInstanceListPaging the old version used t_ds_process_instance.process_definition_id joined on t_ds_process_definition.id but the new version used t_ds_process_instance.process_definition_id joined on t_ds_process_definition.code. Can we fix this by modifying the column 'process_definition_code' of table 't_ds_process_instance' from id to the new code or what should we do to fix this. BTW Is this means that the process submitted during upgrading could not been recovery after successfully upgraded. 3be41ce5692edb263b14efaad2af0ad YOK6BVR%_ 7Q} 2IC$%C@%Q .

What you expected to happen

After upgrade we could not find any task or process that submitted from old version which really scarring me. And we are wondering that jobs submitted from old version could be recovery or not.

How to reproduce

upgrade to 2.0.0 when there do have jobs been submitted from old version's ds.

Anything else

No response

Version

2.0.0

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

Eonchpy avatar Dec 13 '21 08:12 Eonchpy

Hi:

  • Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
  • In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
  • If you haven't received a reply for a long time, you can subscribe to the developer's email,Mail subscription steps reference https://dolphinscheduler.apache.org/en-us/community/development/subscribe.html ,Then write the issue URL in the email content and send question to [email protected].

github-actions[bot] avatar Dec 13 '21 08:12 github-actions[bot]

Since from 1 X to 2 X is a huge change, so the workflow instance cannot support upgrading

lenboo avatar Jan 04 '22 10:01 lenboo

https://github.com/apache/dolphinscheduler/issues/7367#issuecomment-1004684939 so it`s mean 1.x workflow is running not transfer to 2.x?

lazybird23 avatar Feb 28 '22 02:02 lazybird23

Since from 1 X to 2 X is a huge change, so the workflow instance cannot support upgrading

lazybird23 avatar Feb 28 '22 03:02 lazybird23