You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/05/09 08:04:38 UTC

[GitHub] [dolphinscheduler] chinaboyll opened a new issue, #9951: [Bug] [update error] upgrade 1.3.5 to 2.0.5 json split error

chinaboyll opened a new issue, #9951:
URL: https://github.com/apache/dolphinscheduler/issues/9951

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   I've tried everything on issues but it doesn't work。
   When I upgraded from 1.3.3 to 2.0.5, running upgrade-Dolphinscheduler. sh failed。
   `json split error
   java.lang.NullPointerException: null
           at org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.splitProcessDefinitionJson(UpgradeDao.java:462) [dolphinscheduler-dao-2.0.5.jar:2.0.5]`
   process_definition_json json is :
   `{"globalParams":[{"prop":"tx_date","direct":"IN","type":"VARCHAR","value":"$[yyyy-MM-dd-1]"}],"tasks":[{"type":"SUB_PROCESS","id":"tasks-55678","name":"bk","params":{"processDefinitionId":102},"description":"basedatadb","timeout":{"strategy":"","interval":null,"enable":false},"runFlag":"NORMAL","conditionResult":{"successNode":[""],"failedNode":[""]},"dependence":{},"taskInstancePriority":"MEDIUM","workerGroup":"default","preTasks":[]},{"type":"SUB_PROCESS","id":"tasks-57711","name":"new_bk","params":{"processDefinitionId":101},"description":"new_productdb","timeout":{"strategy":"","interval":null,"enable":false},"runFlag":"NORMAL","conditionResult":{"successNode":[""],"failedNode":[""]},"dependence":{},"taskInstancePriority":"MEDIUM","workerGroup":"default","preTasks":[]},{"type":"SUB_PROCESS","id":"tasks-12630","name":"product_name","params":{"processDefinitionId":120},"description":"abc","timeout":{"strategy":"","interval":null,"enable":false},"runFlag":"NORMAL","conditionResu
 lt":{"successNode":[""],"failedNode":[""]},"dependence":{},"taskInstancePriority":"MEDIUM","workerGroup":"default","preTasks":[]},{"type":"SUB_PROCESS","id":"tasks-38043","name":"bk_log","params":{"processDefinitionId":124},"description":"abc","timeout":{"strategy":"","interval":null,"enable":false},"runFlag":"NORMAL","conditionResult":{"successNode":[""],"failedNode":[""]},"dependence":{},"taskInstancePriority":"MEDIUM","workerGroup":"default","preTasks":[]}],"tenantId":2,"timeout":0}`
   
   There are four tasks in the system. If you run the first two tasks separately, there is no problem. If you run the last two tasks separately, there is an error.
   
   ### What you expected to happen
   
   Normal upgrade
   
   ### How to reproduce
   
   update t_ds_process_definition set process_definition_json="{\"globalParams\":[{\"prop\":\"tx_date\",\"direct\":\"IN\",\"type\":\"VARCHAR\",\"value\":\"$[yyyy-MM-dd-1]\"}],\"tasks\":[{\"type\":\"SUB_PROCESS\",\"id\":\"tasks-55678\",\"name\":\"bk\",\"params\":{\"processDefinitionId\":102},\"description\":\"basedatadb\",\"timeout\":{\"strategy\":\"\",\"interval\":null,\"enable\":false},\"runFlag\":\"NORMAL\",\"conditionResult\":{\"successNode\":[\"\"],\"failedNode\":[\"\"]},\"dependence\":{},\"taskInstancePriority\":\"MEDIUM\",\"workerGroup\":\"default\",\"preTasks\":[]},{\"type\":\"SUB_PROCESS\",\"id\":\"tasks-57711\",\"name\":\"new_bk\",\"params\":{\"processDefinitionId\":101},\"description\":\"new_productdb\",\"timeout\":{\"strategy\":\"\",\"interval\":null,\"enable\":false},\"runFlag\":\"NORMAL\",\"conditionResult\":{\"successNode\":[\"\"],\"failedNode\":[\"\"]},\"dependence\":{},\"taskInstancePriority\":\"MEDIUM\",\"workerGroup\":\"default\",\"preTasks\":[]},{\"type\":\"SUB_PRO
 CESS\",\"id\":\"tasks-12630\",\"name\":\"product_name\",\"params\":{\"processDefinitionId\":120},\"description\":\"abc\",\"timeout\":{\"strategy\":\"\",\"interval\":null,\"enable\":false},\"runFlag\":\"NORMAL\",\"conditionResult\":{\"successNode\":[\"\"],\"failedNode\":[\"\"]},\"dependence\":{},\"taskInstancePriority\":\"MEDIUM\",\"workerGroup\":\"default\",\"preTasks\":[]},{\"type\":\"SUB_PROCESS\",\"id\":\"tasks-38043\",\"name\":\"bk_log\",\"params\":{\"processDefinitionId\":124},\"description\":\"abc\",\"timeout\":{\"strategy\":\"\",\"interval\":null,\"enable\":false},\"runFlag\":\"NORMAL\",\"conditionResult\":{\"successNode\":[\"\"],\"failedNode\":[\"\"]},\"dependence\":{},\"taskInstancePriority\":\"MEDIUM\",\"workerGroup\":\"default\",\"preTasks\":[]}],\"tenantId\":2,\"timeout\":0}"
   then run upgrade-Dolphinscheduler. sh
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   2.0.5
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #9951: [Bug] [update error] upgrade 1.3.3 to 2.0.5 json split error

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #9951:
URL: https://github.com/apache/dolphinscheduler/issues/9951#issuecomment-1150539850

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #9951: [Bug] [update error] upgrade 1.3.3 to 2.0.5 json split error

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #9951:
URL: https://github.com/apache/dolphinscheduler/issues/9951#issuecomment-1158319789

   This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] chinaboyll commented on issue #9951: [Bug] [update error] upgrade 1.3.3 to 2.0.5 json split error

Posted by GitBox <gi...@apache.org>.
chinaboyll commented on issue #9951:
URL: https://github.com/apache/dolphinscheduler/issues/9951#issuecomment-1169619181

   Problem solved: because my workflow instance A was deleted. But the SUB_PROCESS component of workflow B(not live) has dependencies on workflow A that have been removed. I can upgrade by deleting the workflows that are not online.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #9951: [Bug] [update error] upgrade 1.3.5 to 2.0.5 json split error

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #9951:
URL: https://github.com/apache/dolphinscheduler/issues/9951#issuecomment-1120776154

   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 [join our slack](https://join.slack.com/t/asf-dolphinscheduler/shared_invite/zt-omtdhuio-_JISsxYhiVsltmC5h38yfw) and send your question to channel `#troubleshooting`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] github-actions[bot] closed issue #9951: [Bug] [update error] upgrade 1.3.3 to 2.0.5 json split error

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #9951: [Bug] [update error] upgrade 1.3.3 to 2.0.5 json split error
URL: https://github.com/apache/dolphinscheduler/issues/9951


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org