apache / dolphinscheduler

Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code
https://dolphinscheduler.apache.org/
Apache License 2.0
12.69k stars 4.58k forks source link

[Bug] [master] the task depend type is null when recovery suspend #13972

Closed eye-gu closed 1 year ago

eye-gu commented 1 year ago

Search before asking

What happened

image

image

When I trigger recovery suspend, the taskDependType of the Command in the database is set to null. But when the master node get the Command, it becomes Task_ only. The check about checkCmdParam failed.

What you expected to happen

recovery suspend success

How to reproduce

recovery suspend

Anything else

I found Command have default taskDependType, but it is not useful with @Builder. Maybe should use @Builder.Default

Version

dev

Are you willing to submit PR?

Code of Conduct

github-actions[bot] commented 1 year ago

Thank you for your feedback, we have received your issue, Please wait patiently for a reply.

eye-gu commented 1 year ago

The database is null, but the reason for returning a 0 value enumeration should be due to a problem with mybatisplus. I have raised an issue with the mybatisplus community: https://github.com/baomidou/mybatis-plus/issues/5266

eye-gu commented 1 year ago

The database is null, but the reason for returning a 0 value enumeration should be due to a problem with mybatisplus. I have raised an issue with the mybatisplus community: baomidou/mybatis-plus#5266

This issue has been identified as an error in the mysql-java driver. I tested that the driver has been fixed on version 8.0.33. Perhaps DS also needs to be upgraded.

eye-gu commented 1 year ago

ResultSetImpl.getObject(), when autoboxing a value of a primitive type retrieved from a column, returned a non-null object when the retrieved value was null. (Bug #29446100, Bug #94533)

https://dev.mysql.com/doc/relnotes/connector-j/8.0/en/news-8-0-17.html