status
stringclasses 1
value | repo_name
stringlengths 9
24
| repo_url
stringlengths 28
43
| issue_id
int64 1
104k
| updated_files
stringlengths 8
1.76k
| title
stringlengths 4
369
| body
stringlengths 0
254k
⌀ | issue_url
stringlengths 37
56
| pull_url
stringlengths 37
54
| before_fix_sha
stringlengths 40
40
| after_fix_sha
stringlengths 40
40
| report_datetime
timestamp[ns, tz=UTC] | language
stringclasses 5
values | commit_datetime
timestamp[us, tz=UTC] |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,505 | ["ambari_plugin/common-services/DOLPHIN/1.3.0/package/scripts/params.py", "ambari_plugin/common-services/DOLPHIN/1.3.3/package/scripts/params.py", "docker/docker-swarm/config.env.sh", "dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/DataSourceServiceTest.java", "dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-api/src/main/java/org/apache/dolphinscheduler/plugin/datasource/api/datasource/mysql/MysqlDatasourceProcessor.java", "dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-api/src/test/java/org/apache/dolphinscheduler/plugin/datasource/api/datasource/mysql/MysqlDatasourceProcessorTest.java", "dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/task/TaskConstants.java", "dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/utils/Constants.java"] | [Feature][Dao] Upgrade com.mysql.jdbc.Driver | ### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
Since we have upgraded the mysql connector to 8.0.15 #6484, it's necessary to use `com.mysql.cj.jdbc.Driver` the `com.mysql.jdbc.Driver` has been deprecated.
Also note if we need to modify the current connection parameters, e.g. `useSSL=false`
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a 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)
| https://github.com/apache/dolphinscheduler/issues/6505 | https://github.com/apache/dolphinscheduler/pull/6708 | 653eae24195957b01d1a911aada020372d1742e6 | 861aaaf9712ec7141417a270710a7941438245d9 | 2021-10-12T06:49:53Z | java | 2021-11-18T00:39:11Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,502 | ["dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java"] | [Bug] [MasterServer] cmdParam NPE when constructProcessInstance on SCHEDULER mode | ### 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
```
[ERROR] 2021-10-11 23:38:00.433 org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService:[211] - scan command error
java.lang.NullPointerException: null
at org.apache.dolphinscheduler.service.process.ProcessService.constructProcessInstance(ProcessService.java:804)
at org.apache.dolphinscheduler.service.process.ProcessService.handleCommand(ProcessService.java:216)
at org.apache.dolphinscheduler.service.process.ProcessService$$FastClassBySpringCGLIB$$ed138739.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
at org.apache.dolphinscheduler.service.process.ProcessService$$EnhancerBySpringCGLIB$$c9f32f1c.handleCommand(<generated>)
at org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService.scheduleProcess(MasterSchedulerService.java:189)
at org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService.run(MasterSchedulerService.java:169)
```
### What you expected to happen
not NPE when run
### How to reproduce
run some task
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6502 | https://github.com/apache/dolphinscheduler/pull/6504 | db04a5b04df8aa5754741c6dd456579d743af1e9 | fea7874f95028325f52300949295260cafab4a64 | 2021-10-12T02:35:18Z | java | 2021-10-12T06:42:49Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,501 | ["dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/WorkFlowLineageMapper.xml"] | [Bug] [Dao] Sql is not correct in WorkFlowLineageMapper.xml | ### 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
`Select "" as xx` seems a wrong SQL in MyBatis, should change to `Select '' as xx`
https://github.com/apache/dolphinscheduler/blob/db04a5b04df8aa5754741c6dd456579d743af1e9/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/WorkFlowLineageMapper.xml#L32-L63
### What you expected to happen
Cannot run `WorkFlowLineageMapper#queryWorkFlowLineageByCode`.
### How to reproduce
Execute `WorkFlowLineageMapper#queryWorkFlowLineageByCode`, `WorkFlowLineageMapper#queryWorkFlowLineageByLineage`
### Anything else
See exception log
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6501 | https://github.com/apache/dolphinscheduler/pull/6576 | 095e2e206a8d428a0048baa38704a3de3a1e037b | 18b324e4d578b76376f6f09fbca6961430f88700 | 2021-10-11T15:34:55Z | java | 2021-10-21T03:25:26Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,497 | ["dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/task/request/TaskRequest.java", "dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/ShellCommandExecutor.java", "dolphinscheduler-task-plugin/dolphinscheduler-task-python/src/main/java/org/apache/dolphinscheduler/plugin/task/python/PythonCommandExecutor.java"] | [Bug] [Task] Shell task can not use user defined environment correctly | ### 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
branch:dev
When submitting a Shell task, the task cannot correctly obtain and set user-defined environment variables
### What you expected to happen
Shell task could obtain user-defined when created and could wite the user-defined env config to the `command file` correctly
### How to reproduce
* create a new env
* create a task with the newly created env
* execute the task
* see task log, the env is not used correctly
### Anything else
# How often does problem occur?
always
# Why this problem occur ?
* When submit a task, the work obtain a `Command` from DB and get `TaskExecutionContext` from the command.
* Then transform `TaskExecutionContext` to `TaskRequest`, TaskExecutionContext` contains a field named `environmentConfig` * to stored user-defined env, but `TaskRequest` **NOT** contains the field, so the user-defined env lost.
* When a `ShellCommandExecutor` created, it only get the dolphinscheduler's system env file and execute `source` command to set the env, but **DO NOT** set the user-defined env.
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6497 | https://github.com/apache/dolphinscheduler/pull/6509 | fea7874f95028325f52300949295260cafab4a64 | a80fca70f7f325aad8eda2fdc1fe64b2a7d2f04f | 2021-10-11T09:10:35Z | java | 2021-10-12T09:47:04Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,486 | ["dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue", "dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue", "dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/_source/list.vue", "dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js"] | [Bug] [UI] update process instance error | ### 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
branch: dev
update process instance error:
miss some required parameters.



### What you expected to happen
update process instance normally.
### How to reproduce
run a process definition.
edit the process instance and 'save' process instance
### Anything else
_No response_
### 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)
| https://github.com/apache/dolphinscheduler/issues/6486 | https://github.com/apache/dolphinscheduler/pull/6487 | 7459ee2531beff236b1f15bd99f1c6f678153a57 | eb21a1763e43ee5b1cb418a0835b0bf1d13e295e | 2021-10-10T14:49:34Z | java | 2021-10-10T15:18:07Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,483 | ["dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/datasource/SpringConnectionFactory.java", "pom.xml", "tools/dependencies/known-dependencies.txt"] | [Bug] [MasterServer] With MySQL 8.0, Druid make thread blocked to wait lock when load class | ### 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
`"MasterEventExecution" #130 daemon prio=5 os_prio=0 tid=0x00007f3590024000 nid=0x355414 waiting for monitor entry [0x00007f35843fe000]
java.lang.Thread.State: BLOCKED (on object monitor)
at java.lang.ClassLoader.loadClass(ClassLoader.java:404)
- waiting to lock <0x0000000740022240> (a java.lang.Object)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.alibaba.druid.util.Utils.loadClass(Utils.java:212)
at com.alibaba.druid.util.MySqlUtils.getLastPacketReceivedTimeMs(MySqlUtils.java:372)
at com.alibaba.druid.pool.DruidAbstractDataSource.testConnectionInternal(DruidAbstractDataSource.java:1471)
at com.alibaba.druid.pool.DruidDataSource.recycle(DruidDataSource.java:1938)
at com.alibaba.druid.pool.DruidPooledConnection.recycle(DruidPooledConnection.java:324)
at com.alibaba.druid.pool.DruidPooledConnection.close(DruidPooledConnection.java:269)
at org.springframework.jdbc.datasource.DataSourceUtils.doCloseConnection(DataSourceUtils.java:360)
at org.springframework.jdbc.datasource.DataSourceUtils.doReleaseConnection(DataSourceUtils.java:347)
at org.springframework.jdbc.datasource.DataSourceUtils.releaseConnection(DataSourceUtils.java:314)
at org.mybatis.spring.transaction.SpringManagedTransaction.close(SpringManagedTransaction.java:115)
at org.apache.ibatis.executor.BaseExecutor.close(BaseExecutor.java:90)
at org.apache.ibatis.session.defaults.DefaultSqlSession.close(DefaultSqlSession.java:263)
at org.mybatis.spring.SqlSessionUtils.closeSqlSession(SqlSessionUtils.java:195)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:448)
at com.sun.proxy.$Proxy90.selectOne(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:159)
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:89)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:61)
at com.sun.proxy.$Proxy95.selectById(Unknown Source)
at org.apache.dolphinscheduler.service.process.ProcessService.findProcessInstanceById(ProcessService.java:379)
at org.apache.dolphinscheduler.service.process.ProcessService$$FastClassBySpringCGLIB$$ed138739.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
at org.apache.dolphinscheduler.service.process.ProcessService$$EnhancerBySpringCGLIB$$f0a248d9.findProcessInstanceById(<generated>)
at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.updateProcessInstanceState(WorkflowExecuteThread.java:1085)
at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.submitPostNode(WorkflowExecuteThread.java:839)
at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.taskFinished(WorkflowExecuteThread.java:384)
at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.taskStateChangeHandler(WorkflowExecuteThread.java:353)
at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.stateEventHandler(WorkflowExecuteThread.java:302)
at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.handleEvents(WorkflowExecuteThread.java:250)
at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.run(WorkflowExecuteThread.java:231)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)`
branch: dev
database: mysql 8.0.21
The MasterServer jstack show that when druid load class, many threads is blocked to wait lock.
I found that when I change durid config like that:
`spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false`
can solve this problem, but I think it's not the right way.
See druid issue: https://github.com/alibaba/druid/issues/3808.
Maybe we should upgrade the mysql connector version and druid version.
### What you expected to happen
thread not blocked by druid when loadClass.
### How to reproduce
run by complete data mode, and use jstack MasterServer
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6483 | https://github.com/apache/dolphinscheduler/pull/6484 | eb21a1763e43ee5b1cb418a0835b0bf1d13e295e | c8ee2df2164308a20bb9234ac719c03f4652f433 | 2021-10-10T07:54:04Z | java | 2021-10-10T16:40:49Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,478 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ExecutorServiceImpl.java", "dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ExecutorServiceTest.java", "dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/quartz/cron/CronUtils.java"] | [Bug] [API & SERVICE] Missing history data in complement data mode | ### 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
1.I have an hourly workflow,the crontab is :"0 0 * * * ? *"
我有一个每小时运行的工作流,crontab 是 :"0 0 * * * ? *"
2. I want to add history data
我去补一个历史数据,数据范围是0点到3点59分
<img width="646" alt="aba7791b47ff5b28599a8f6885eeb52" src="https://user-images.githubusercontent.com/50513095/136656656-e0730af4-d6bc-4835-956a-4881a639230e.png">
3.the history data of 2021-10-09 03:00:00 not works
03点的数据没有运行

### What you expected to happen
I want the data of 2021-10-09 03:00:00 is works
我想要3点的数据执行
### How to reproduce
<img width="646" alt="fd5559070e8152804b241e41a2938b3" src="https://user-images.githubusercontent.com/50513095/136656799-6a19fe41-300e-4ea1-b27b-a680233a76a6.png">
### Anything else
_No response_
### 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)
| https://github.com/apache/dolphinscheduler/issues/6478 | https://github.com/apache/dolphinscheduler/pull/6491 | e091801e05c8e9243ec96f76a2e7cc1f1f5cecab | 88690462b4b93f8df01ba1952374cdf00c02eda5 | 2021-10-09T11:53:38Z | java | 2021-10-11T12:03:25Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,474 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java", "dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java"] | [Improvement] [MasterServer] schedule time for process instance optimization | ### 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
branch: dev
When I use arthas to trace methods by complete data mode, I found that ProcessService.constructProcessInstance is slow because three point:
- getScheduleTime, which seems like to handle in api is better;
- complete data type handle, delete all the valid tasks when complement data;
- initComplementDataParam, the schedule time again;
### What you expected to happen
construct process instance is more quickly without needless DB operation;
### How to reproduce
use arthas to trace ProcessService.constructProcessInstance
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6474 | https://github.com/apache/dolphinscheduler/pull/6477 | ea493534df7b924220c9c1e7f6529f548d3912c9 | e091801e05c8e9243ec96f76a2e7cc1f1f5cecab | 2021-10-09T09:23:27Z | java | 2021-10-11T07:13:38Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,472 | ["dolphinscheduler-dist/src/main/provisio/dolphinscheduler.xml"] | [Bug] [Task] The dist generated package is missing some task plugins | ### 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
The dist generated package is missing some task plugins,such as mr, sqoop, etc.
### What you expected to happen
The dist module generation package contains all task plugins.
### How to reproduce
The dist module configuration generates missing task plugins.
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6472 | https://github.com/apache/dolphinscheduler/pull/6473 | 59daf3c837c4f9ef99d0f67044cd8129ee30a547 | 7459ee2531beff236b1f15bd99f1c6f678153a57 | 2021-10-09T07:23:03Z | java | 2021-10-09T13:35:28Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,471 | ["dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java"] | [Feature][Master] Cache Process definition in master | ### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
in order to reduce the db query times, cache process definitions in master.
procesDefinitionCacheMaps: {key: code-version, value: processDefintion}
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6471 | https://github.com/apache/dolphinscheduler/pull/6511 | bddf3e6f2c811c3ae6623bb588414173f0132c57 | cea8ae69916039b55e84482b5c0703f3c62ef9c5 | 2021-10-09T06:08:19Z | java | 2021-10-13T03:36:27Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,467 | [".github/workflows/stale.yml"] | [Feature][CI] Add stale bot for issues and PR | ### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
Add stale bot for issues and PR, which for issues and PR has not recent activity for a long time, allow bot to automatically mark issues and PRs as stale or event close them. It could reduce maintenance time for our community
### Use case
Automatically mark issues and PRs as stale or event close them
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6467 | https://github.com/apache/dolphinscheduler/pull/6468 | cbeedba3e2cfdf80553da0d798fc71aaa448c6e0 | 03aaef0fe6548e828144e6e5ac8ceb8bd6b650ad | 2021-10-08T14:30:58Z | java | 2021-10-28T05:43:02Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,463 | ["dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue"] | [Bug] [UI] The front-end verification task name already exists | ### 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
The front-end verification task name already exists
### What you expected to happen
The task name can have the same
### How to reproduce
remove front-end verification in the formModel.vue
### Anything else
_No response_
### 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)
| https://github.com/apache/dolphinscheduler/issues/6463 | https://github.com/apache/dolphinscheduler/pull/6464 | c8ee2df2164308a20bb9234ac719c03f4652f433 | 6e70e51e9f730cff8653496a28c76e84823403c7 | 2021-10-08T10:13:22Z | java | 2021-10-11T02:07:57Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,461 | ["sql/upgrade/1.4.0_schema/mysql/dolphinscheduler_ddl.sql", "sql/upgrade/1.4.0_schema/postgresql/dolphinscheduler_ddl.sql"] | [Bug] [SQL] sql script upgrade exception | ### 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
Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE t_ds_task_definition drop INDEX `task_unique`; END IF; END' at line 1
### What you expected to happen
sql script
### How to reproduce
sql script upgrade
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6461 | https://github.com/apache/dolphinscheduler/pull/6462 | b642e9ca546d8ea21bbd9f193ff6ff9729037f75 | 28004c3b05d4644cce2b649e45ae35ef7c19d2d5 | 2021-10-08T09:44:27Z | java | 2021-10-22T02:30:52Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,459 | ["dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/quartz/cron/CronUtils.java"] | [Bug] [Master] Complemente data error | ### 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
complement data error when start_date=end_date
### What you expected to happen
complement the start_date when start_date = end_date
### How to reproduce
complement data error when start_date=end_date
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6459 | https://github.com/apache/dolphinscheduler/pull/6460 | a8baa9553fd64d1414c204c6ba95019b7376f771 | a502e643bcf9a321385485dd98e7e95056ed5eae | 2021-10-08T07:58:42Z | java | 2021-10-08T08:56:33Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,455 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/processor/StateEventProcessor.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/CommonTaskProcessor.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/SubTaskProcessor.java", "dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java"] | [Bug] [Master] Cannot stop sub process task | ### 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
cannot stop the sub process tasks.
### What you expected to happen
stop the tasks normally
### How to reproduce
start a process.
kill the process
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6455 | https://github.com/apache/dolphinscheduler/pull/6458 | 4d69685ba1f9ecc8595dffc13194ec902531ed51 | a8baa9553fd64d1414c204c6ba95019b7376f771 | 2021-10-08T02:35:44Z | java | 2021-10-08T06:08:12Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,445 | ["dolphinscheduler-standalone-server/src/main/java/org/apache/dolphinscheduler/server/StandaloneServer.java"] | [Improvement][Standalone] Run h2 in daemon mode | ### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
In standalone, we use h2 as the database.
If the creation table sql is wrong, it will throw an exception, but the server will keep running.
It's better to stop.
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6445 | https://github.com/apache/dolphinscheduler/pull/6446 | 4fbee7dc4b178b13c4a795fa848a86ec94c5cd27 | 6529f92883dfd62cdc7241acba8cb16e4fa60a36 | 2021-10-04T02:00:47Z | java | 2021-10-06T02:15:36Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,438 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/builder/TaskExecutionContextBuilder.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/runner/TaskExecuteThread.java", "dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/queue/entity/TaskExecutionContext.java"] | [Improvement][Worker] remove meaningless DB query | ### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
remove meaningless DB query
org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread
In the process of task kill, it will query the DB to obtain the task instance object, but this judgment does not make any sense. In fact, the relevant context is already clear, so there is no need to query from DB.
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6438 | https://github.com/apache/dolphinscheduler/pull/6440 | d284e44d52f75bd6c5f5756d9b7ae4a5af24fadc | ea2a8d26a0d42683309b8bda9ef24f4daaab266b | 2021-10-01T17:01:38Z | java | 2021-10-02T05:09:00Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,431 | [".github/mergeable.yml"] | [Feature][dev] Make sure to synchronize change for sql file | ### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
When developer change sql files in https://github.com/apache/dolphinscheduler/tree/dev/sql, sometime they would forgot change `H2` sql file. Standalone server could not start when this happen. Maybe we should
* (better) Add bot ensure those file change synchronize
* Add check list when contributor create PR in [PR template][1]
[1]: https://github.com/apache/dolphinscheduler/blob/dev/.github/PULL_REQUEST_TEMPLATE.md
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6431 | https://github.com/apache/dolphinscheduler/pull/6465 | 28f871e58b10262788275d74ba1c8bdc31ad6708 | 98f466e09e2260e247ba1aed3c80a2fcc81fc817 | 2021-09-30T10:04:01Z | java | 2021-11-10T06:50:05Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,428 | ["style/intellij-java-code-style.xml"] | [Bug] [dev] Code style different between review dog and Intellij configure | ### 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
Following the [submit guide][1], I run formatter by using `Ctrl+L` in Intellij and push to upsteam, the commit is https://github.com/apache/dolphinscheduler/pull/6269/commits/bb9f050fdf87c91f1dfe8ad6d9e91f3875475abe, but it failed in our reviewdog CI, see [ci run][2].
It means that our auto formatter and reviewdog checker have different rule. what reivewdog accept format is
```java
@ComponentScan(value = "org.apache.dolphinscheduler", excludeFilters = {
@ComponentScan.Filter(type = FilterType.REGEX, pattern = {
"org.apache.dolphinscheduler.server.master.*",
"org.apache.dolphinscheduler.server.worker.*",
"org.apache.dolphinscheduler.server.monitor.*",
"org.apache.dolphinscheduler.server.log.*"
})
})
```
but our auto formatter is
```java
@ComponentScan(value = "org.apache.dolphinscheduler", excludeFilters = {
@ComponentScan.Filter(type = FilterType.REGEX, pattern = {
"org.apache.dolphinscheduler.server.master.*",
"org.apache.dolphinscheduler.server.worker.*",
"org.apache.dolphinscheduler.server.monitor.*",
"org.apache.dolphinscheduler.server.log.*"
})
})
```
[1]: https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html
[2]: https://github.com/apache/dolphinscheduler/actions/runs/1287112918
### What you expected to happen
Auto formatter and reviewdog should in the same rule
### How to reproduce
Create new java code contain `@ComponentScan(value = "org.apache.dolphinscheduler"` and create new PR
### Anything else
_No response_
### 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)
| https://github.com/apache/dolphinscheduler/issues/6428 | https://github.com/apache/dolphinscheduler/pull/6432 | a502e643bcf9a321385485dd98e7e95056ed5eae | a3119330b70ffed8fe01da0776a14678db52b9fb | 2021-09-30T07:50:58Z | java | 2021-10-08T16:29:13Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,424 | ["dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/config.js", "dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue"] | [Feature][UI] sort the task plugin order. | ### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
sort the task plugin order:
move the waterdrop to the end.
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a 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)
| https://github.com/apache/dolphinscheduler/issues/6424 | https://github.com/apache/dolphinscheduler/pull/6425 | a9d805d79117047e571deeb52fbf96531c19674b | 9c07c7d7ed3bf9387b2e9986a56be560595018a1 | 2021-09-30T03:24:33Z | java | 2021-09-30T10:23:42Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,412 | ["dolphinscheduler-task-plugin/dolphinscheduler-task-api/pom.xml"] | [BUG][Task-API]load codec class fail | ### 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
When using codec-related classes, the NoClassDefFoundError is caused due to the exclusion of related packages
ERROR] 2021-09-29 12:18:56.119 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[216] - task scheduler failure
java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
at org.apache.dolphinscheduler.plugin.task.datasource.PasswordUtils.<clinit>(PasswordUtils.java:38)
at org.apache.dolphinscheduler.plugin.task.datasource.mysql.MysqlDatasourceProcessor.getConnection(MysqlDatasourceProcessor.java:126)
at org.apache.dolphinscheduler.plugin.task.datasource.DatasourceUtil.getConnection(DatasourceUtil.java:59)
at org.apache.dolphinscheduler.plugin.task.sql.SqlTask.executeFuncAndSql(SqlTask.java:181)
at org.apache.dolphinscheduler.plugin.task.sql.SqlTask.handle(SqlTask.java:152)
at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:202)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at org.apache.dolphinscheduler.spi.plugin.DolphinPluginClassLoader.loadClass(DolphinPluginClassLoader.java:81)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 11 common frames omitted
### What you expected to happen
normal run
### How to reproduce
Run a SQL task. The data source uses MySql or others that require a password encoder.
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6412 | https://github.com/apache/dolphinscheduler/pull/6411 | ea6503b99742ab72d99527edb3abdad398bee83e | 1843e986f5af15e92f80fa756cfe229dcc2b8c1e | 2021-09-29T06:36:45Z | java | 2021-09-29T08:03:06Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,408 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java", "dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ResourcesServiceTest.java", "dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/ResourceMapper.java", "dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ResourceMapper.xml", "dolphinscheduler-dao/src/test/java/org/apache/dolphinscheduler/dao/mapper/ResourceMapperTest.java"] | [Feature][API] the private function 'checkResourceExists' should remove the userId condition | ### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
the private function 'checkResourceExists' should remove the userId condition;
If we want to check the resouce exists or not, we should not user the userId condition.
Because the resource was created by user, it's userId was the user who created it.
If we user the userID '0', It won't take effect.
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6408 | https://github.com/apache/dolphinscheduler/pull/6409 | 86c85114b23317b9f791e091101fa6289e9d6b7c | 3a8b80971ba4b23b8e919ad04e074bd273c40c9a | 2021-09-29T04:44:58Z | java | 2021-10-31T13:26:48Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,393 | [".github/actions/translate-on-issue", ".gitmodules"] | [Bug] [GA] Missing issue action translate-on-issue | ### 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
When I create new issue, such as #6390, I received a mail list said my issue-robot jobs failed.
I wonder what jobs we runs after issue created, and why it alway faileds, related discussions https://github.com/apache/dolphinscheduler/discussions/6391
### What you expected to happen
Issue bot should not failed when create new issue
### How to reproduce
Create a new issue
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6393 | https://github.com/apache/dolphinscheduler/pull/6394 | c013b49e728d942bf22574f1b59d4c5a9e69a9f3 | c05e407b15fd7d64fb57471e39c6647952721d4c | 2021-09-28T07:52:51Z | java | 2021-09-28T13:06:50Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,367 | ["dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src/main/java/org/apache/dolphinscheduler/plugin/task/sql/SqlTask.java"] | [Bug] [Plugin TIS] Misuseing PowerMockito.spy lead to UT faild | ### 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
In Plugin TIS TestCase , by misuseing PowerMockito.spy lead to UT faild
[https://github.com/apache/dolphinscheduler/pull/6363/checks](https://github.com/apache/dolphinscheduler/pull/6363/checks)
```
Error: Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.786 s <<< FAILURE! - in org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest
Error: testInit(org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest) Time elapsed: 0.531 s <<< ERROR!
java.lang.IllegalArgumentException: name argument cannot be null
at org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest.before(TISTaskTest.java:71)
Error: testGetTISConfigParams(org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest) Time elapsed: 0.001 s <<< ERROR!
java.lang.IllegalArgumentException: name argument cannot be null
at org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest.before(TISTaskTest.java:71)
Error: testHandle(org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest) Time elapsed: 0.001 s <<< ERROR!
java.lang.IllegalArgumentException: name argument cannot be null
at org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest.before(TISTaskTest.java:71)
```
### What you expected to happen
make the UT pass
### How to reproduce
for fix this bug ,shoud remote PowerMockito.spy() invoking
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6367 | https://github.com/apache/dolphinscheduler/pull/6387 | cdcbe84c8a1bb1e5286568f42d2eb2ff530dbe6a | a62a7a7216fe2021d1516b6d7370598123cced37 | 2021-09-27T03:24:56Z | java | 2021-09-28T03:38:22Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,366 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java"] | [Bug] [API][service] checkResourceExists function use the magic number userId '0' | ### 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
when the resource exactly exists,but the userId is not '0', the function will not take effect.
### What you expected to happen
the resources should be operate by the loginUser, sow the userId should be the loginUser's id
### How to reproduce
the resources should be operate by the loginUser, sow the userId should be the loginUser's id
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6366 | https://github.com/apache/dolphinscheduler/pull/6368 | 545173faa31e477f9487e98611f1951cf43efa2b | 7413b578410a53c4839920edfdf98ac89344b959 | 2021-09-27T02:48:04Z | java | 2021-09-27T08:58:26Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,353 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java"] | [Bug] [Master] dispatch task to worker very slowly | ### 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
branch: dev
i find master dispatch tasks to worker slowly .
mysql> select count(*),state from t_ds_task_instance group by state;
+----------+-------+
| count(*) | state |
+----------+-------+
| 15347 | 7 |
| 12 | 1 |
+----------+-------+
2 rows in set (0.01 sec)
mysql> select count(*),state from t_ds_process_instance group by state;
+----------+-------+
| count(*) | state |
+----------+-------+
| 892 | 7 |
| 12109 | 1 |
+----------+-------+
### What you expected to happen
Optimize the speed of dispatch task
### How to reproduce
create a dag

schedule the dag '0 * * * * ? *'
run the dag with 'complement data'
you will find the process_instance count: 12109
but the task (state=1) number is 12
This phenomenon is not normal
### Anything else
_No response_
### 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)
| https://github.com/apache/dolphinscheduler/issues/6353 | https://github.com/apache/dolphinscheduler/pull/6375 | b2a2fbda1d25c4eb18cf58ceb6d062b74855cedd | 67094d0f7f1803e263e73a0164ecbbd829c57129 | 2021-09-26T03:49:00Z | java | 2021-09-27T11:31:22Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,352 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java"] | [Bug] [ApiServer] override the old process definition when I use the copy workflow feature | ### 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
branch: dev
When I try to copy workflow form process definition `python001`, it doesn't create a new process definition but update the old one with name like `python001_copy_20210926112401233`.
### What you expected to happen
create a new process definition instead of an override.
### How to reproduce
just create a process definition and copy it.
### Anything else
_No response_
### 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)
| https://github.com/apache/dolphinscheduler/issues/6352 | https://github.com/apache/dolphinscheduler/pull/6357 | 58eb20a11b7b47c53960f211f83549582fd53072 | c56daede2f9812e88b2ea4a5f5ab4436782b171c | 2021-09-26T03:43:30Z | java | 2021-09-26T08:36:54Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,347 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterSchedulerService.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java", "dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java"] | [Bug] [Master] the first schedule_time is error in complement data | ### 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
schedule_time is set error:
command_param: {"complementEndDate":"2021-09-21 00:26:00","complementStartDate":"2021-09-21 00:24:00"}
schedule_time: 2021-09-21 00:24:00
cron: 0 * * * * ? *
### What you expected to happen
the schedule_time is set OK.
schedule_time: 2021-09-21 00:25:00
### How to reproduce
complement data cron : 0 * * * * ? *
complement data some date, you would find some errors in schedule_time.
### Anything else
_No response_
### 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)
| https://github.com/apache/dolphinscheduler/issues/6347 | https://github.com/apache/dolphinscheduler/pull/6351 | b71f6aea7af899da41bd958caa30d68d89a9aec4 | 20a3741b249b871ffdf975de111244e6c68f3f07 | 2021-09-25T08:58:23Z | java | 2021-09-26T03:55:57Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,336 | ["dolphinscheduler-dao/src/test/java/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapperTest.java"] | [Bug] [UT] UT failed in DAO module | ### 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
When I run the UT in `TaskInstanceMapperTest`, it failed.
The `process_definition_code` is null.
```java
### SQL: INSERT INTO t_ds_process_instance ( warning_group_id, timeout, executor_id, max_try_times, tenant_id, command_param, run_times, process_definition_version ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ? )
### Cause: java.sql.SQLException: Field 'process_definition_code' doesn't have a default value
; Field 'process_definition_code' doesn't have a default value; nested exception is java.sql.SQLException: Field 'process_definition_code' doesn't have a default value
```
### What you expected to happen
UT execute success.
### How to reproduce
Execute TaskInstanceMapperTest.
### Anything else
_No response_
### 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)
| https://github.com/apache/dolphinscheduler/issues/6336 | https://github.com/apache/dolphinscheduler/pull/6435 | ea2a8d26a0d42683309b8bda9ef24f4daaab266b | 4fbee7dc4b178b13c4a795fa848a86ec94c5cd27 | 2021-09-24T10:36:04Z | java | 2021-10-03T15:25:06Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,331 | ["dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src/main/java/org/apache/dolphinscheduler/plugin/task/sql/SqlTask.java"] | [Bug] [TaskPlugin] PSQLException: statement has been closed when run sql task | ### 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
branch: dev
model: dev-run, master-server、worker-server、api-server run by idea
dolphinscheduler-server worker.properties config:
`task.plugin.binding=./dolphinscheduler-task-plugin/dolphinscheduler-task-shell/pom.xml,./dolphinscheduler-task-plugin/dolphinscheduler-task-python/pom.xml,./dolphinscheduler-task-plugin/dolphinscheduler-task-sql/pom.xml`
dolphinscheduler-task-sql pom.xml add jar dependency:
```
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
</dependency>`
```
exception:
```
[INFO] 2021-09-24 15:54:37.813 /home/csf/javapath/dolphinscheduler/logs/754963903078400_1/28/52.log:[386] - prepare statement replace sql : select count(1) from t_ds_task_instance
[ERROR] 2021-09-24 15:54:37.815 /home/csf/javapath/dolphinscheduler/logs/754963903078400_1/28/52.log:[202] - execute sql error: 这个 statement 已经被关闭。
[ERROR] 2021-09-24 15:54:37.815 /home/csf/javapath/dolphinscheduler/logs/754963903078400_1/28/52.log:[153] - sql task error: org.postgresql.util.PSQLException: 这个 statement 已经被关闭。
[ERROR] 2021-09-24 15:54:37.817 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[212] - task scheduler failure
org.postgresql.util.PSQLException: 这个 statement 已经被关闭。
at org.postgresql.jdbc.PgStatement.checkClosed(PgStatement.java:694)
at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:137)
at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:106)
at org.apache.dolphinscheduler.plugin.task.sql.SqlTask.executeFuncAndSql(SqlTask.java:190)
at org.apache.dolphinscheduler.plugin.task.sql.SqlTask.handle(SqlTask.java:147)
at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:198)
```
### What you expected to happen
run sql task success
### How to reproduce
create a process contains sql task with pgsql source, and run it
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6331 | https://github.com/apache/dolphinscheduler/pull/6334 | 89cc045961477168ac8ff74c5d6604b606214775 | 61c64619949b2098f7efcd2cfcc701ef98564083 | 2021-09-24T08:21:29Z | java | 2021-09-24T10:39:04Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,323 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/EventExecuteService.java"] | [Bug] [MasterServer] make CPU 100% even without task | ### 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
branch: dev
master-server make CPU high even without task.
because EventExecuteService run loop without sleep.
### What you expected to happen
low CPU usage when idle
### How to reproduce
run master-server and observe CPU usage.
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6323 | https://github.com/apache/dolphinscheduler/pull/6324 | c3324cc101b39eb789cccd9dee7e3cc5aae8722b | 89cc045961477168ac8ff74c5d6604b606214775 | 2021-09-24T02:13:49Z | java | 2021-09-24T08:19:02Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,320 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java"] | [Bug] [API] batch delete process definition bug | ### 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
batch delete process definition fail
### What you expected to happen
batch delete process definition success
### How to reproduce
batch delete process definition
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6320 | https://github.com/apache/dolphinscheduler/pull/6321 | c4375a54c167f8e96d80c3cc67ad0a607ba2ef7b | 99f593cf42d6abd4312c74511f60ac8a2eeafb25 | 2021-09-23T12:44:06Z | java | 2021-09-23T14:43:15Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,316 | ["dolphinscheduler-server/src/main/resources/config/install_config.conf"] | [Bug] [Script] keytab username will not be set correctly if with @ sign | ### 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
if we use defalut install.sh and install_config.conf, the keytab username will not be replaced correctly,which blame
> sed: -e expression #1, char 62: unknown option to `s'
### What you expected to happen
keytab username can be set correctly
### How to reproduce
the easiest way is run below in a shell:
```shell
keytabUserName=@
sed -i "s@^login.user.keytab.username=.*@login.user.keytab.username=${keytabUserName}@g" conf/common.properties
```
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6316 | https://github.com/apache/dolphinscheduler/pull/6317 | 99f593cf42d6abd4312c74511f60ac8a2eeafb25 | c855a5926ceb9cfb6efb0c901c8d92fe3774e999 | 2021-09-23T11:20:40Z | java | 2021-09-23T14:43:58Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,306 | ["dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/task/TaskConstants.java", "dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java", "dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractTaskExecutor.java", "dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/util/LoggerUtils.java"] | [Bug] [Worker] task log path generated error. | ### 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
task log path generated error.
### What you expected to happen
task log-path in db is different with worker.
### How to reproduce
run a process definition.
you will find the shell-task's log-path in db is different with the worker.
worker log-path: logs/definition_id/instance_id/task_instance_id.log
db-path: /logs/definition_code/instance_code/task_instance_id.log
### Anything else
_No response_
### 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)
| https://github.com/apache/dolphinscheduler/issues/6306 | https://github.com/apache/dolphinscheduler/pull/6311 | 0b53adeb07df72a9b888566092642a77dfccf65d | 163a0696a4ee71a44e02054caef9b78387a9e3b2 | 2021-09-23T06:09:23Z | java | 2021-09-23T08:51:58Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,302 | ["dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java", "dolphinscheduler-service/src/test/java/org/apache/dolphinscheduler/service/process/ProcessServiceTest.java"] | [Bug] [API] Add a new task to an existing workflow, and the task is lost | ### 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
Add a new task to an existing workflow, and the task is lost
### What you expected to happen
Tasks are added normally
### How to reproduce
Update process definition, then add task
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6302 | https://github.com/apache/dolphinscheduler/pull/6307 | b8ed7e6f2d38aefdf4902253416c91e2cc02f8eb | 0b53adeb07df72a9b888566092642a77dfccf65d | 2021-09-23T02:56:34Z | java | 2021-09-23T07:06:49Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,301 | ["dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js"] | [Bug] [UI] The task instance successfully enforces the failed task and reports an error | ### 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

### What you expected to happen
Forced success will succeed
### How to reproduce
Force successful operation for failed tasks
### Anything else
_No response_
### 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)
| https://github.com/apache/dolphinscheduler/issues/6301 | https://github.com/apache/dolphinscheduler/pull/6305 | 91150628385bbac709d7e0030ae042e5e0cc396b | b8ed7e6f2d38aefdf4902253416c91e2cc02f8eb | 2021-09-23T02:53:07Z | java | 2021-09-23T06:26:15Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,298 | ["dolphinscheduler-server/src/main/resources/config/install_config.conf", "install.sh"] | [Bug] [Server] Task plugin dir should be included in install and config file | ### 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
If we followed the doc to deploy cluster, we will find the worker cannot find the task plugin because the task plugin dir is empty by default
### What you expected to happen
Related info should be added in the install file
### How to reproduce
just follow the doc to deploy a cluster DS
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6298 | https://github.com/apache/dolphinscheduler/pull/6299 | f5dde9fb5e59adf61e6283951c99569ff35d4141 | d184ebda1e7fff1250858386debb7a2a0435bb78 | 2021-09-23T01:55:42Z | java | 2021-09-29T03:36:51Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,292 | ["dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/process/ResourceInfo.java", "dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java", "dolphinscheduler-service/src/test/java/org/apache/dolphinscheduler/service/process/ProcessServiceTest.java"] | [Bug] [Task] Spark task execute failed due to NPE | ### 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
branch: dev
when execute spark task, a NullPointerException occurs due to `mainJar ` has no `resourceName` field.
it is because the master only saves `resourceId` of `mainJar` in the database, when the worker fetch task data from database, it does not query resource information, so the `mainJar ` field of `SparkParameters` is like this:
```json
{"id": 1}
```
`res` and `resourceName` are lost, and became `null` value in the object. this causes NPE when execute `mainJar.getResourceName()` method
### What you expected to happen
spark task execute successfully
### How to reproduce
create a new spark task, and run it
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6292 | https://github.com/apache/dolphinscheduler/pull/6295 | 35312fd498bf5f2059b0e77b68f557c388870310 | c4375a54c167f8e96d80c3cc67ad0a607ba2ef7b | 2021-09-22T12:03:42Z | java | 2021-09-23T14:23:17Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,286 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java", "dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/ProcessTaskRelationLogMapper.java", "dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessTaskRelationLogMapper.xml"] | [Bug] [API] Delete processDefinitionVersion bug | ### 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
When deleting the workflow version, the workflow relationship of the corresponding version should be deleted. Only this version of the workflow will now be deleted.
### What you expected to happen
When deleting the workflow version, the workflow relationship of the corresponding version will be deleted.
### How to reproduce
Operate deleteProcessDefinitionVersion
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6286 | https://github.com/apache/dolphinscheduler/pull/6287 | 51e27bb4b64e8270d135dad7fd277124a43761c8 | 8980b7027a30f75445882280e5872b49985a5188 | 2021-09-21T07:16:14Z | java | 2021-09-21T14:35:50Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,284 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProcessDefinitionController.java", "dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java", "dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java", "dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessInstanceServiceImpl.java", "dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java", "dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessDefinitionServiceTest.java", "dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessInstanceServiceTest.java"] | [Bug] [API] Api transaction does not take effect | ### 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
Api transaction does not take effect, such as processDefiniton create/update api
### What you expected to happen
Transaction operations should work
### How to reproduce
The second step-in table operation failed. The first step-in table operation will not be rolled back
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6284 | https://github.com/apache/dolphinscheduler/pull/6288 | 7e8febed4de0c27f67bf67811d2314762dce2733 | d7160874e4f086fafff8675123cb8de7f46cffc1 | 2021-09-21T04:24:18Z | java | 2021-09-22T12:38:22Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,279 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java"] | [Bug] [Master] Parallel tasks would be Irregularly submitted twice | ### 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
parallels tasks in one DAG, run the dag, the tasks would be Irregularly submitted twice.
### What you expected to happen
tasks in one DAG should be submitted once.
### How to reproduce
10 parallel tasks in one DAG.
run the DAG,
find the tasks submit history, you would find some tasks are submitted twice.
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6279 | https://github.com/apache/dolphinscheduler/pull/6280 | 7098855ee0f004b2d291a33f2740ca36edd64dbf | b71967b017f0d4c50f5837a3173ba0f35bf2c077 | 2021-09-20T04:24:39Z | java | 2021-09-21T04:04:31Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,277 | ["dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java"] | [Bug] [Master] tasks submit time error. | ### 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
branch : dev
10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds.
### What you expected to happen
the parallel processing tasks submit-time should be the same.
### How to reproduce
10 parallel processing tasks in one DAG.
run the dag
check the submit-time of the tasks.
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6277 | https://github.com/apache/dolphinscheduler/pull/6278 | 540fd9dc0844a4e44dc5485d6001eb0dd18c8257 | 649723132bc8276ef221c37e7014c0cf6772be60 | 2021-09-20T04:03:32Z | java | 2021-09-20T06:57:53Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,276 | ["dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/FileUtils.java", "dolphinscheduler-common/src/test/java/org/apache/dolphinscheduler/common/utils/FileUtilsTest.java"] | [Improvement][Common] Read file with UTF-8 | ### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
You can find the code in org.apache.dolphinscheduler.common.utils.FileUtils
https://github.com/apache/dolphinscheduler/blob/69a153c5f5c9d91b4eececbcfbf9e2fb407f89c4/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/FileUtils.java#L234-L254
The `output.toString()` method will use the system' default charset to deserialize the byte to string.
This may cause a problem if we use UTF-8 to write a string to a file and use this method to read the file in some environments.
related issue #6273, fix FileUtilsTest#testWriteContent2File
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a 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)
| https://github.com/apache/dolphinscheduler/issues/6276 | https://github.com/apache/dolphinscheduler/pull/6466 | a3119330b70ffed8fe01da0776a14678db52b9fb | 59daf3c837c4f9ef99d0f67044cd8129ee30a547 | 2021-09-20T02:34:43Z | java | 2021-10-08T16:40:10Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,256 | ["dolphinscheduler-server/src/main/resources/config/install_config.conf", "install.sh"] | [Bug] [ALL] No install.sh for deploy | ### 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
There seems no install.sh for deploying in dev branch
### What you expected to happen
Added install.sh
### How to reproduce
No need, we can not find install.sh after mvn install.
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6256 | https://github.com/apache/dolphinscheduler/pull/6257 | 649723132bc8276ef221c37e7014c0cf6772be60 | 7098855ee0f004b2d291a33f2740ca36edd64dbf | 2021-09-17T15:17:46Z | java | 2021-09-20T16:53:25Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,245 | ["dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskDefinitionLogMapper.xml"] | [Bug] [API] TaskDefinitionLog save error when creating a workflow | ### 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
## branch: dev
### when i want to create a workflow, i click the save button, but the back-end reported an exception:
```text
2021-09-17 15:23:01.231 ERROR 57816 --- [tp1516958404-78] o.a.d.a.exceptions.ApiExceptionHandler : 创建工作流错误
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'taskDefinition' not found. Available parameters are [taskDefinitionLogs, param1]
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:78) ~[mybatis-spring-2.0.2.jar:2.0.2]
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440) ~[mybatis-spring-2.0.2.jar:2.0.2]
at com.sun.proxy.$Proxy10.insert(Unknown Source) ~[na:na]
at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:271) ~[mybatis-spring-2.0.2.jar:2.0.2]
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:58) ~[mybatis-plus-core-3.2.0.jar:3.2.0]
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:61) ~[mybatis-plus-core-3.2.0.jar:3.2.0]
at com.sun.proxy.$Proxy133.batchInsert(Unknown Source) ~[na:na]
at org.apache.dolphinscheduler.service.process.ProcessService.saveTaskDefine(ProcessService.java:2205) ~[classes/:na]
at org.apache.dolphinscheduler.service.process.ProcessService$$FastClassBySpringCGLIB$$ed138739.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.apache.dolphinscheduler.service.process.ProcessService$$EnhancerBySpringCGLIB$$29c15cf5.saveTaskDefine(<generated>) ~[classes/:na]
at org.apache.dolphinscheduler.api.service.impl.ProcessDefinitionServiceImpl.createTaskDefinition(ProcessDefinitionServiceImpl.java:249) ~[classes/:na]
at org.apache.dolphinscheduler.api.service.impl.ProcessDefinitionServiceImpl.createProcessDefinition(ProcessDefinitionServiceImpl.java:199) ~[classes/:na]
at org.apache.dolphinscheduler.api.service.impl.ProcessDefinitionServiceImpl$$FastClassBySpringCGLIB$$e8e34ed9.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:752) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295) ~[spring-tx-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98) ~[spring-tx-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.apache.dolphinscheduler.api.service.impl.ProcessDefinitionServiceImpl$$EnhancerBySpringCGLIB$$9efa77d5.createProcessDefinition(<generated>) ~[classes/:na]
at org.apache.dolphinscheduler.api.controller.ProcessDefinitionController.createProcessDefinition(ProcessDefinitionController.java:130) ~[classes/:na]
at org.apache.dolphinscheduler.api.controller.ProcessDefinitionController$$FastClassBySpringCGLIB$$dc9bf5db.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:752) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.apache.dolphinscheduler.api.aspect.AccessLogAspect.doAround(AccessLogAspect.java:87) ~[classes/:na]
at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_292]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_292]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691) ~[spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.apache.dolphinscheduler.api.controller.ProcessDefinitionController$$EnhancerBySpringCGLIB$$e38856c1.createProcessDefinition(<generated>) ~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_292]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_292]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_292]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_292]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) ~[spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892) ~[spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797) ~[spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) [spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) [spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [javax.servlet-api-3.1.0.jar:3.1.0]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) [spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api-3.1.0.jar:3.1.0]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1633) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at com.github.xiaoymin.swaggerbootstrapui.filter.SecurityBasicAuthFilter.doFilter(SecurityBasicAuthFilter.java:84) [swagger-bootstrap-ui-1.9.3.jar:na]
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at com.github.xiaoymin.swaggerbootstrapui.filter.ProductionSecurityFilter.doFilter(ProductionSecurityFilter.java:53) [swagger-bootstrap-ui-1.9.3.jar:na]
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:97) [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:94) [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:561) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602) [jetty-security-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1612) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1582) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:766) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.Server.handle(Server.java:516) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) ~[jetty-io-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) ~[jetty-io-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) ~[jetty-io-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375) ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773) ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905) ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_292]
Caused by: org.apache.ibatis.binding.BindingException: Parameter 'taskDefinition' not found. Available parameters are [taskDefinitionLogs, param1]
at org.apache.ibatis.binding.MapperMethod$ParamMap.get(MapperMethod.java:212) ~[mybatis-3.5.2.jar:3.5.2]
at org.apache.ibatis.reflection.wrapper.MapWrapper.get(MapWrapper.java:45) ~[mybatis-3.5.2.jar:3.5.2]
at org.apache.ibatis.reflection.MetaObject.getValue(MetaObject.java:122) ~[mybatis-3.5.2.jar:3.5.2]
at org.apache.ibatis.reflection.MetaObject.metaObjectForProperty(MetaObject.java:145) ~[mybatis-3.5.2.jar:3.5.2]
at org.apache.ibatis.reflection.MetaObject.getValue(MetaObject.java:115) ~[mybatis-3.5.2.jar:3.5.2]
at com.baomidou.mybatisplus.core.MybatisDefaultParameterHandler.setParameters(MybatisDefaultParameterHandler.java:220) ~[mybatis-plus-core-3.2.0.jar:3.2.0]
at org.apache.ibatis.executor.statement.PreparedStatementHandler.parameterize(PreparedStatementHandler.java:94) ~[mybatis-3.5.2.jar:3.5.2]
at org.apache.ibatis.executor.statement.RoutingStatementHandler.parameterize(RoutingStatementHandler.java:64) ~[mybatis-3.5.2.jar:3.5.2]
at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_292]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_292]
at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:63) ~[mybatis-3.5.2.jar:3.5.2]
at com.sun.proxy.$Proxy17.parameterize(Unknown Source) ~[na:na]
at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.prepareStatement(MybatisSimpleExecutor.java:99) ~[mybatis-plus-core-3.2.0.jar:3.2.0]
at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.doUpdate(MybatisSimpleExecutor.java:53) ~[mybatis-plus-core-3.2.0.jar:3.2.0]
at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117) ~[mybatis-3.5.2.jar:3.5.2]
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:197) ~[mybatis-3.5.2.jar:3.5.2]
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:184) ~[mybatis-3.5.2.jar:3.5.2]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_292]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_292]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_292]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_292]
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426) ~[mybatis-spring-2.0.2.jar:2.0.2]
... 116 common frames omitted
```
### What you expected to happen
Create workflow should success.
### How to reproduce
1. create a project
2. create a new workflow
3. add a node
4. save the workflow
5. the error occurs
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6245 | https://github.com/apache/dolphinscheduler/pull/6246 | fced3892ee20d64c3eafe187cbd94508ac339a98 | 58da46b1291aa8bd2b6e73b3455a09188f40e145 | 2021-09-17T07:25:01Z | java | 2021-09-17T09:07:04Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,228 | ["dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/index.vue"] | [Bug] [ui] When I create a new queue in the yarn queue, clicking New queue again will echo the last newly created queue value | ### 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
When I create a new queue in the yarn queue, clicking New queue again will echo the last newly created queue value

### What you expected to happen
Clicking New queue again will not echo the last new queue value
### How to reproduce
Create a yarn queue twice in a row
### Anything else
--
### 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)
| https://github.com/apache/dolphinscheduler/issues/6228 | https://github.com/apache/dolphinscheduler/pull/6264 | 7a321505cfa622761941d0aa0f0e2b01893e7867 | 22277517c5a7f27bfa57aff8eadc81dd963c588c | 2021-09-16T02:09:48Z | java | 2021-09-22T03:06:15Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,219 | ["dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue", "dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue"] | [Bug] [User] modify user's information and DS's page shows wrong information at the frond-end | ### 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
branch:dev
when I modify some users' information and ds's page shows wrong information at the frond-end which is strange .
### What you expected to happen
the user admin who logs on don't change to other users when he modify some users' information
### How to reproduce
1、create two new users

2、modify the information of one of them

3、click the Edit button and the problem goes on.

### Anything else
_No response_
### Are you willing to submit PR?
- [x] 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)
| https://github.com/apache/dolphinscheduler/issues/6219 | https://github.com/apache/dolphinscheduler/pull/6341 | 67094d0f7f1803e263e73a0164ecbbd829c57129 | cdcbe84c8a1bb1e5286568f42d2eb2ff530dbe6a | 2021-09-15T08:07:00Z | java | 2021-09-27T15:31:06Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,214 | ["sql/dolphinscheduler_h2.sql"] | [Bug] [Server] StandaloneServer can't save workflow correctly | ### 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
When use StandaloneServer, after creating a workflow in a project and click save button, the Web page show success information. but no workflow appears on the list.
### What you expected to happen
Should show the workflow after we create and save it.
the log is :
```text
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Method queryTotal execution error of sql :
SELECT COUNT(1) FROM t_ds_process_definition td LEFT JOIN (SELECT process_definition_code, release_state AS schedule_release_state FROM t_ds_schedules GROUP BY process_definition_code, release_state) sc ON sc.process_definition_code = td.code LEFT JOIN t_ds_user tu ON td.user_id = tu.id WHERE td.project_code = ?
....
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Column "process_definition_code" not found; SQL statement:
CREATE FORCE VIEW (
SELECT
"process_definition_code",
"release_state" AS "schedule_release_state"
FROM "public"."t_ds_schedules"
GROUP BY "process_definition_code", "release_state"
) AS
SELECT
"process_definition_code",
"release_state" AS "schedule_release_state"
FROM "public"."t_ds_schedules"
GROUP BY "process_definition_code", "release_state" [42122-200]
```
### How to reproduce
1. Start StandaloneServer.
2. Login dolphinscheduler and create a project.
3. Create a workflow in the project we created right now.
4. Add some node in the workflow
5. Click save button to save the workflow
6. The web page show success message, but exception appears in the IDE.
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6214 | https://github.com/apache/dolphinscheduler/pull/6215 | 6aafa81affca5fcab05c94cbcc94738c5f271e6b | a1e447d39969362b5b380b6b802ce47d961bde51 | 2021-09-15T02:39:04Z | java | 2021-09-16T13:18:03Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,208 | ["dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java", "dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java"] | [Bug] [Master] json parse error in sub process | ### 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
branch : dev
running a sub process,
json parse error in sub process

### What you expected to happen
sub process run successfully.
### How to reproduce
run a sub process.
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6208 | https://github.com/apache/dolphinscheduler/pull/6211 | ac943bca6a3146ea23bdbfe85a09eac68da73945 | 8694b9c8f989eb5c6b0792e5901cba2a207cdcf0 | 2021-09-14T11:24:11Z | java | 2021-09-15T02:29:26Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,194 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java", "dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java"] | [Bug] [Server] Master build dag error | ### 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
Perform multi version tasks

### What you expected to happen
Normal execution
### How to reproduce
Perform multi version tasks
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6194 | https://github.com/apache/dolphinscheduler/pull/6195 | 7029062f4c2f247e9eac333e28e36e66b03fb435 | 71e2c8808b3a0871619af4968dfaaa423a90b4c6 | 2021-09-13T15:09:21Z | java | 2021-09-14T03:46:47Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,181 | ["dolphinscheduler-alert/src/test/java/org/apache/dolphinscheduler/alert/plugin/AlertPluginManagerTest.java"] | Empty try block in UT | I found out we have empty try block in our UT, maybe we should just remove this block?
https://github.com/apache/dolphinscheduler/blob/e1aed5eefd26c9b447d356de6238e4b61a4d3daf/dolphinscheduler-alert/src/test/java/org/apache/dolphinscheduler/alert/plugin/AlertPluginManagerTest.java#L60-L65 | https://github.com/apache/dolphinscheduler/issues/6181 | https://github.com/apache/dolphinscheduler/pull/6182 | d91801e6f60670915a97d031b21fe16ce98e3e4e | cbeedba3e2cfdf80553da0d798fc71aaa448c6e0 | 2021-09-13T02:20:30Z | java | 2021-10-27T11:01:33Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,170 | ["dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/_source/list.vue", "dolphinscheduler-ui/src/js/conf/home/store/projects/actions.js"] | [Bug] [UI] Delete project error | ### 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
Delete project error
### What you expected to happen
Delete workflow normally
### How to reproduce

### Anything else
-dev
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6170 | https://github.com/apache/dolphinscheduler/pull/6174 | 5dcfad98492c3e0f2e9f53381428de3d15d60c67 | b71f6aea7af899da41bd958caa30d68d89a9aec4 | 2021-09-11T05:17:36Z | java | 2021-09-25T03:58:48Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,166 | ["dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/task/AbstractTask.java", "dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java", "dolphinscheduler-task-plugin/dolphinscheduler-task-python/src/main/java/org/apache/dolphinscheduler/plugin/task/python/PythonTask.java"] | [Bug] [task-plugin] Python Task execute error | ### 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
In the newest dev version, python task is not migrated complete. When I execute python task in workflow, ds throws NullPointerException.
### What you expected to happen
Python task execute correctly.
### How to reproduce
- Add a python task into work flow.
- Type simple script, just like`print('Hello')`
- Then execute the work flow
### Anything else
_No response_
### Are you willing to submit PR?
- [x] 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)
| https://github.com/apache/dolphinscheduler/issues/6166 | https://github.com/apache/dolphinscheduler/pull/6167 | ea2a9dbcb2ca3f4be2da6a4f300e988640e72219 | 0715be34d5b4c553396374679ccb23fedc4c27a0 | 2021-09-10T15:02:37Z | java | 2021-09-11T04:25:24Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,159 | ["sql/dolphinscheduler_h2.sql", "sql/dolphinscheduler_postgre.sql", "sql/upgrade/1.4.0_schema/mysql/dolphinscheduler_ddl.sql", "sql/upgrade/1.4.0_schema/postgresql/dolphinscheduler_ddl.sql"] | [Improve] [SQL] Set the same default value for the field of environment code in Mysql and Postgres | ### 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
The field of the environment code is set to different default value in the file dolphinscheduler_postgre.sql and dolphinscheduler_mysql.sql .
In the dolphinscheduler_mysql.sql , the default value of the envrionment code is set to '-1':

But in the dolphinscheduler_postgre.sql, the default value of the envrionment code is set to null:

### What you expected to happen
We'd better to use the same default value for the environment code in different types of database.
### How to reproduce
Please check out these two files, and you will see the differences.
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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)
| https://github.com/apache/dolphinscheduler/issues/6159 | https://github.com/apache/dolphinscheduler/pull/6160 | 58b694a85cf91a193a8768b370739d6cf23022a7 | 6dedafb8ff2dd413cd82d8d2f981f5774221c533 | 2021-09-10T02:42:36Z | java | 2021-09-11T11:49:32Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,158 | ["sql/upgrade/1.4.0_schema/mysql/dolphinscheduler_ddl.sql"] | [Question][dev] Local dev environment error | ### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
Use CreateDolphinScheduler to create a table error.t_ds_task_definition and t_ds_task_definition_log are not created in the sql\upgrade\1.4.0_schema\mysql\dolphinscheduler_ddl.sql file, but new fields are added.
### DolphinScheduler Version
-dev
### Additional context

### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
| https://github.com/apache/dolphinscheduler/issues/6158 | https://github.com/apache/dolphinscheduler/pull/6210 | 8694b9c8f989eb5c6b0792e5901cba2a207cdcf0 | 6820684307f11dd28731dcae8ec9868615a6ed7f | 2021-09-10T02:24:48Z | java | 2021-09-15T04:03:15Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,152 | ["dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessTaskRelationLogMapper.xml", "dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessTaskRelationMapper.xml", "dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskDefinitionLogMapper.xml", "dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskDefinitionMapper.xml", "pom.xml", "sql/dolphinscheduler_postgre.sql"] | [Bug][Server] Manual execution of workflow exception | **For better global communication, Please describe it in English. If you feel the description in English is not clear, then you can append description in Chinese(just for Mandarin(CN)), thx! **
**Describe the bug**
Exception 1:
```
insert into t_ds_task_definition (code, `name`, version, description, project_code, user_id, task_type, task_params, flag, task_priority, worker_group, fail_retry_times, fail_retry_interval, timeout_flag, timeout_notify_strategy, timeout, delay_time, resource_ids, create_time, update_time) values (?,?,?,?, ?,?,?,?, ?,?,?,?, ?,?,?,?, ?,?,?,?)
### Cause: java.sql.SQLException: Field 'environment_code' doesn't have a default value
```
Exception 2:
```
insert into t_ds_task_instance
### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'environment_code' in 'field list'
; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column 'environment_code' in 'field list'
```
Exception 3:
Master-Server the TASK_EXECUTE_RESPONSE and TASK_EXECUTE_ACK processor class error
| https://github.com/apache/dolphinscheduler/issues/6152 | https://github.com/apache/dolphinscheduler/pull/6209 | c1496d8a74ef69253d1873602a467ca61876bbfb | 5fead427f227bd6261b677fff600e4f913462c5e | 2021-09-09T10:38:28Z | java | 2021-09-16T07:07:22Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,147 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java", "dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/SnowFlakeUtils.java"] | [Bug] The genTaskCodeList interface returns the same code | Multiple requests to the genTaskCodeList interface within a short period of time may respond with the same code

短时间内(≈1s)多次请求`/dolphinscheduler/projects/{projectCode}/task-definition/gen-task-codes`接口,可能返回相同的code | https://github.com/apache/dolphinscheduler/issues/6147 | https://github.com/apache/dolphinscheduler/pull/6150 | cca48d0a9249917f7dc2ecef1cad67e93e227555 | e8ddc9103dbc6d0e69b5a1e10c43606ba84f7009 | 2021-09-09T03:31:10Z | java | 2021-09-09T14:01:22Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,146 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java", "dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/SnowFlakeUtils.java"] | [Bug] Save workflow error | I created a workflow as follows:

I got an error when i clicked the save btn:

**Which version of Dolphin Scheduler:**
version: 2.0.0
branch: dev
**Additional context**
The request params:
[request.txt](https://github.com/apache/dolphinscheduler/files/7133138/request.txt)
| https://github.com/apache/dolphinscheduler/issues/6146 | https://github.com/apache/dolphinscheduler/pull/6150 | cca48d0a9249917f7dc2ecef1cad67e93e227555 | e8ddc9103dbc6d0e69b5a1e10c43606ba84f7009 | 2021-09-09T03:19:57Z | java | 2021-09-09T14:01:22Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,138 | ["sql/dolphinscheduler_mysql.sql"] | [Bug][sql] Create t_ds_task_instance mysql table error | **Describe the bug**
1. ~~When I create the `t_ds_task_instance` table, it will throw an exception.~~
https://github.com/apache/dolphinscheduler/blob/9d7f70bca777177c14efb3d32e469a54951f4a6b/sql/dolphinscheduler_mysql.sql#L819
```
[2021-09-08 20:09:39] [42000][1101] BLOB, TEXT, GEOMETRY or JSON column 'environment_config' can't have a default value
```
We cannot set default value for text in mysql https://dev.mysql.com/doc/refman/8.0/en/blob.html

2. ~~And we also need to remove the extra comma in line 991~~
https://github.com/apache/dolphinscheduler/blob/9d7f70bca777177c14efb3d32e469a54951f4a6b/sql/dolphinscheduler_mysql.sql#L991
3. And in other table such as `t_ds_task_definition`, `t_ds_task_definition_log` the environment_code is suggested to set default -1, currently it is not null, this is unreasonable. It seems in the program code this default value is -1, I am not sure.
4. Add `environment_code` in `t_ds_process_instance` table.
**Which version of Dolphin Scheduler:**
-[dev] | https://github.com/apache/dolphinscheduler/issues/6138 | https://github.com/apache/dolphinscheduler/pull/6140 | 71cb6690916e6c3947665d4c5d08c83d06fd2202 | dd5acfb7f0a19b6cac16ee299801adaba1fdfdfa | 2021-09-08T12:26:13Z | java | 2021-09-09T02:43:34Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,137 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/registry/WorkerRegistryClient.java"] | [Bug][Master] worker cannot be found if worker start earlier than master. | branch : dev
phenomenon:
1 start worker
2 start master
3 start a process instance
4 master cannot find the worker

then i restart the master, this problem disappeared!
| https://github.com/apache/dolphinscheduler/issues/6137 | https://github.com/apache/dolphinscheduler/pull/6232 | 5fead427f227bd6261b677fff600e4f913462c5e | fa0b86ac824fe88acecb64178de87529ad9f2627 | 2021-09-08T10:25:33Z | java | 2021-09-16T07:08:00Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,135 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/DataSourceController.java", "dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProjectController.java", "sql/dolphinscheduler_mysql.sql"] | [Bug][API]the interface of 'authed project' is missed. |
branch: [dev]
"authed-project" in API module is missed

| https://github.com/apache/dolphinscheduler/issues/6135 | https://github.com/apache/dolphinscheduler/pull/6136 | 9d7f70bca777177c14efb3d32e469a54951f4a6b | edb8f3c435a052bdd622b5a9a7c4ce995f5705b5 | 2021-09-08T10:09:49Z | java | 2021-09-08T12:47:54Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,112 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/processor/StateEventProcessor.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/processor/queue/StateEventResponseService.java"] | [Bug][MasterServer] StateEventResponseWorker will make cpu high | **Describe the bug**
https://github.com/apache/dolphinscheduler/blob/93ef12366b422d1410c8de45e541ef4f97239a84/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/processor/queue/StateEventResponseService.java#L104-L121
In the line 116, when the eventQueue throw an `InterruptedException`, we will catch this exception and reset the current thread state to interrupt, in most case, it is suitable for most cases.
But in this case, we will use while(true) to loop, and when the current thread is interrupt, the blockqueue will throw InterruptedException.
So the code is equals with below
```java
while(Stopper.isRunning()) {
logger.warn("persist task error", e);
}
```
**Which version of Dolphin Scheduler:**
-[dev]
| https://github.com/apache/dolphinscheduler/issues/6112 | https://github.com/apache/dolphinscheduler/pull/6281 | 2d02f78ba7fbe0cf0e83db2b841eae42b8a8f855 | ebb56b2620b7fb3c7dba70ba9342bddc909a2e75 | 2021-09-06T12:27:59Z | java | 2021-09-26T03:57:37Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,072 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ExecutorServiceImpl.java", "dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java", "dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/JSONUtils.java", "dolphinscheduler-common/src/test/java/org/apache/dolphinscheduler/common/utils/JSONUtilsTest.java", "dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/TaskInstance.java", "dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java"] | [Bug][common] Generics type is invalid in JsonUtils.toMap | **Describe the bug**
This method is hope to deserialize a JSON to Map.
https://github.com/apache/dolphinscheduler/blob/e866d1be86464d812551e8c38ba60767a204c82e/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/JSONUtils.java#L249-L251
But the generics type in the Map is not what we expected.
We can write a simple test case:
```java
String sqlResult = "{\"id\":[],\"test1\":\"6\"}";
Map<String, List> param = toMap(sqlResult, String.class, List.class);
System.out.println(param);
```
It will execute success, and print
```
{id=[], test1=6}
```
The value type of `id` is `List`, the value type of `test1` is `String`.
But If we loop the map, it will throw a exception, because the value in this map has different type
```java
String sqlResult = "{\"id\":[],\"test1\":\"6\"}";
Map<String, List> param = toMap(sqlResult, String.class, List.class);
param.forEach((key, value) -> System.out.println(value));
```
```
[]
Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at org.apache.dolphinscheduler.common.utils.JSONUtils.main(JSONUtils.java:256)
```
I don't find out the deep reason, but I think we should remove this method.
**Which version of Dolphin Scheduler:**
-[dev]
| https://github.com/apache/dolphinscheduler/issues/6072 | https://github.com/apache/dolphinscheduler/pull/6283 | c855a5926ceb9cfb6efb0c901c8d92fe3774e999 | 46257834792d3316c9f5ef885f38e069e4eb6452 | 2021-08-31T10:30:15Z | java | 2021-09-23T15:06:53Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,053 | ["dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js"] | [Bug][UI] Lost zh_CN.js | the file zh_CN.js is lost.(dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js)
need revert zh_CN.js
| https://github.com/apache/dolphinscheduler/issues/6053 | https://github.com/apache/dolphinscheduler/pull/6054 | 037332033058ff42e997ac46a2d078bfcb1da34e | e0eea995200f673d6406ec62c464c77f1d5b6171 | 2021-08-28T12:54:52Z | java | 2021-08-28T16:05:08Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,045 | ["dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/src/main/java/org/apache/dolphinscheduler/plugin/registry/zookeeper/ZookeeperRegistry.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/WorkerServer.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/runner/RetryReportTaskStatusThread.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/runner/WorkerManagerThread.java"] | [Bug][Master] Dead server kill itself error(when the register plugin is zookeeper) | **Describe the bug**
When a master/worker session is lost from zookeeper, the Ephemeral node will be removed by zookeeper.
And the failover node will do the failover job, it will create a node in zookeeper dead-server path.
The `HeartBeatTask` of the dead server will check it has been in the dead-server, and it will kill itself.
When it stops, it will unregister from the registry(zookeeper).
https://github.com/apache/dolphinscheduler/blob/04720b327aef0649e9317573680874c20ea20ad5/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/MasterRegistryClient.java#L371-L379
https://github.com/apache/dolphinscheduler/blob/04720b327aef0649e9317573680874c20ea20ad5/dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/src/main/java/org/apache/dolphinscheduler/plugin/registry/zookeeper/ZookeeperRegistry.java#L197-L204
The problem is that the dead server's Ephemeral node is already removed, when we use `client.delete()` it will throw an KeeperException.NoNodeException.
**To Reproduce**
1. Start a master server
2. delete the Ephemeral node to simulate the master is dead.
3. see exception, and the master cannot shut down, since some other thread cannot exist.
**Which version of Dolphin Scheduler:**
-[dev]
**Requirement or improvement**
Ignore the KeeperException.NoNodeException, if the node is not exist, we can think the node has been deleted.
| https://github.com/apache/dolphinscheduler/issues/6045 | https://github.com/apache/dolphinscheduler/pull/6046 | 04720b327aef0649e9317573680874c20ea20ad5 | 839d6054eeb32c9efbab4836aa169e1c9c6ca417 | 2021-08-27T09:38:16Z | java | 2021-08-27T11:43:04Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,038 | ["dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.scss"] | [Bug][Ui] Width of "SQL Statement" in Dag FormLineModal will be shrunk if sql line is too long | **Describe the bug**
Width of "SQL Statement" in Dag FormLineModal will be shrunk if sql line is too long
**To Reproduce**
Steps to reproduce the behavior, for example:
1. Go to page of create definition
2. Add a sql node
3. input 'ALTER TABLE ods.ods_tz_h5ubt_log_realtime add if not exists partition(dt='${dt_1}')' in Sql Statement
4. See error
**Expected behavior**
Width of "SQL Statement" in Dag FormLineModal will not be shrunk if sql line is too long
**Screenshots**

**Which version of Dolphin Scheduler:**
-[1.3.8-release]
| https://github.com/apache/dolphinscheduler/issues/6038 | https://github.com/apache/dolphinscheduler/pull/6040 | e0eea995200f673d6406ec62c464c77f1d5b6171 | e866d1be86464d812551e8c38ba60767a204c82e | 2021-08-26T03:02:30Z | java | 2021-08-31T08:27:45Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 6,024 | ["dolphinscheduler-dist/src/main/assembly/dolphinscheduler-bin.xml"] | [Improvement][dist] Remove useless packaging commands | **Describe the question**
Remove useless packaging commands
**What are the current deficiencies and the benefits of improvement**
In the common module, there is no Src / main / resources / bin directory, but the dist module will still execute relevant commands when packaging, which is unreasonable
**Which version of DolphinScheduler:**
-[1.3.7-release]
**Describe alternatives you've considered**
Remove the dolphinscheduler-common / src / main / resources / bin directory packaging command in dolphinscheduler -bin.xml in dist module | https://github.com/apache/dolphinscheduler/issues/6024 | https://github.com/apache/dolphinscheduler/pull/6029 | 7b8579310f5b11c3e8195b85873eaa920d11bc58 | 67dde65d3207d325d344e472a4be57286a1d379d | 2021-08-23T07:13:29Z | java | 2021-08-25T11:27:16Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,975 | ["dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml"] | [Bug][dolphinscheduler-dao] queryLastRunningProcess sql in ProcessInstanceMapper.xml | **Describe the bug**
In method queryLastRunningProcess of ProcessInstanceMapper.xml, when judging the start time and the end time, the parentheses should be less.The version is latest.
**Code**
<select id="queryLastRunningProcess" resultType="org.apache.dolphinscheduler.dao.entity.ProcessInstance">
select
<include refid="baseSql"/>
from t_ds_process_instance
where process_definition_code=#{processDefinitionCode}
<if test="states !=null and states.length != 0">
and state in
<foreach collection="states" item="i" index="index" open="(" separator="," close=")">
#{i}
</foreach>
</if>
_<if test="startTime!=null and endTime != null ">
and (schedule_time <![CDATA[ >= ]]> #{startTime} and schedule_time <![CDATA[ <= ]]> #{endTime}
or start_time <![CDATA[ >= ]]> #{startTime} and start_time <![CDATA[ <= ]]> #{endTime})
</if>_
order by start_time desc limit 1
</select>
**It should look like this in the slash**
_<if test="startTime!=null and endTime != null ">
and ((schedule_time <![CDATA[ >= ]]> #{startTime} and schedule_time <![CDATA[ <= ]]> #{endTime})
or (start_time <![CDATA[ >= ]]> #{startTime} and start_time <![CDATA[ <= ]]> #{endTime}))
</if>_
Pls check it, thank you. | https://github.com/apache/dolphinscheduler/issues/5975 | https://github.com/apache/dolphinscheduler/pull/5980 | f7e0e9fecf92bf074bbff89eef9f98a8fc5ba45b | 2afa625a753680313e8a6c5fb3a68e01e56f5caa | 2021-08-11T07:48:29Z | java | 2021-08-13T01:28:24Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,951 | ["dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue", "dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js", "dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js"] | [Improvement][UI] When creating an alarm instance, the alarm instance name input box prompts optimization | **Describe the question**
When creating an alarm instance, the alarm instance name input box prompts optimization.

**Which version of DolphinScheduler:**
-[dev]
| https://github.com/apache/dolphinscheduler/issues/5951 | https://github.com/apache/dolphinscheduler/pull/7770 | 7395b980d3d76646dada5b7e9220d946b154001e | 0dfbbc89839b790ab5e0a3208496a4ab6fe0f359 | 2021-08-05T09:39:03Z | java | 2022-01-04T01:13:20Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,921 | [".github/workflows/ci_backend.yml", ".github/workflows/ci_ut.yml", "docker/build/hooks/build", "docker/build/hooks/build.bat"] | [Improvement][CI] Maven connection sometimes times out | ## Describe the question
I notice a lot of connection timeout errors in the CI build.
For example: https://github.com/apache/dolphinscheduler/runs/3192300302?check_suite_focus=true

## Describe alternatives you've considered
Please see: https://github.com/actions/virtual-environments/issues/1499#issuecomment-689467080
We can add `-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120` to the build command.
| https://github.com/apache/dolphinscheduler/issues/5921 | https://github.com/apache/dolphinscheduler/pull/5924 | 2535db4c77ab09822aec57ac4dd9f586bd8ad476 | 0b4a20251ff2e609f59295d6b98bc83006ff2a25 | 2021-07-29T15:27:24Z | java | 2021-08-01T14:18:32Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,908 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterExecThread.java"] | [Bug][MasterServer] When executing an compensation task, the execution thread would have a NPE | In the latest dev branch, if the task executes the compensation task, after the task is executed successfully, we can found that the Master throws an exception which would cause the process shows failed.
```java
[ERROR] 2021-07-28 12:58:55.462 org.apache.dolphinscheduler.server.master.runner.MasterExecThread:[224] - master exec thread exception
java.lang.NullPointerException: null
at org.apache.dolphinscheduler.server.master.runner.MasterExecThread.executeComplementProcess(MasterExecThread.java:331)
at org.apache.dolphinscheduler.server.master.runner.MasterExecThread.run(MasterExecThread.java:218)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
``` | https://github.com/apache/dolphinscheduler/issues/5908 | https://github.com/apache/dolphinscheduler/pull/5909 | 67dde65d3207d325d344e472a4be57286a1d379d | 2fa3b419a0598c499ae0e9cb39f2402f43718418 | 2021-07-28T11:52:52Z | java | 2021-08-25T14:19:28Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,904 | ["sql/dolphinscheduler_mysql.sql", "sql/dolphinscheduler_postgre.sql", "sql/upgrade/1.4.0_schema/mysql/dolphinscheduler_ddl.sql", "sql/upgrade/1.4.0_schema/postgresql/dolphinscheduler_ddl.sql"] | [Bug][upgrade]dev branch upgrade mysql sql script error |
**Describe the bug**
```
IF NOT EXISTS (SELECT 1 FROM information_schema.COLUMNS
WHERE TABLE_NAME='t_ds_datasource'
AND TABLE_SCHEMA=(SELECT DATABASE())
AND COLUMN_NAME ='t_ds_datasource_name_UN')
```
Create index type statement error
**Which version of Dolphin Scheduler:**
-[dev]
| https://github.com/apache/dolphinscheduler/issues/5904 | https://github.com/apache/dolphinscheduler/pull/5821 | 8db1b042b2523bd3b6ed363303283308ea14b2cc | 0075523fdd7f170a626634ebe41c0cef4c36feaf | 2021-07-28T04:34:10Z | java | 2021-07-28T09:22:39Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,876 | ["sql/dolphinscheduler_h2.sql", "sql/dolphinscheduler_mysql.sql", "sql/dolphinscheduler_postgre.sql", "sql/upgrade/1.4.0_schema/mysql/dolphinscheduler_ddl.sql", "sql/upgrade/1.4.0_schema/postgresql/dolphinscheduler_ddl.sql"] | [Bug][SQL] Suggest to increase the max length of the field resource_ids in the table t_ds_task_definition. | **Describe the bug**
When I saved a shell task that used many resource files ,the service threw PSQLException.
**To Reproduce**
Steps to reproduce the behavior, for example:
1. Create a shell task and select many resource files.
2. Save the workflow, you would see that again. If you don't , maybe you would do well to pick more resource files.
**Expected behavior**
Expect to increase the max length of the field resource_ids in the table t_ds_task_definition.
**Screenshots**


**Which version of Dolphin Scheduler:**
-[dev]
**Additional context**
Exception stack trace:
```
[INFO] 2021-07-22 11:51:07.658 org.apache.dolphinscheduler.api.aspect.AccessLogAspect:[75] - REQUEST TRANCE_ID:0702204b-58c0-4f0f-8b4b-dbfef2be63cc, LOGIN_USER:admin, URI:/dolphinscheduler/users/list-paging, METHOD:GET, HANDLER:org.apache.dolphinscheduler.api.controller.UsersController.queryUserList, ARGS:{searchVal=jiang.hua, pageNo=1, pageSize=10}
[INFO] 2021-07-22 11:51:07.682 org.apache.dolphinscheduler.api.aspect.AccessLogAspect:[75] - REQUEST TRANCE_ID:55caab3c-e003-4925-88c9-172dd2318d7c, LOGIN_USER:admin, URI:/dolphinscheduler/projects/feature-works/process/update, METHOD:POST, HANDLER:org.apache.dolphinscheduler.api.controller.ProcessDefinitionController.updateProcessDefinition, ARGS:{connects=[], name=jianghua_test, description=test, locations={"tasks-24242":{"name":"restore_from_checkpoint_test123","targetarr":"","nodenumber":"0","x":-800,"y":-900,"color":"#1297DC"}}, id=8, releaseState=OFFLINE, projectName=feature-works, processDefinitionJson={"tasks":[{"id":"tasks-24242","code":491450867713,"version":27,"name":"restore_from_checkpoint_test123","desc":null,"type":"SHELL","runFlag":"NORMAL","loc":null,"maxRetryTimes":3,"retryInterval":1,"params":{"resourceList":[{"id":157},{"id":158},{"id":162},{"id":164},{"id":166},{"id":168},{"id":160},{"id":161},{"id":159},{"id":163},{"id":165},{"id":167},{"id":95},{"id":97},{"id":98},{"id":99},{"id":100},{"id":104},{"id":105},{"id":106},{"id":107},{"id":116},{"id":94},{"id":96},{"id":101},{"id":102},{"id":103},{"id":108},{"id":109},{"id":110},{"id":112},{"id":113},{"id":114},{"id":115},{"id":117},{"id":170},{"id":171},{"id":172},{"id":120},{"id":121},{"id":123},{"id":125},{"id":127},{"id":129},{"id":131},{"id":133},{"id":135},{"id":137},{"id":139},{"id":141},{"id":147},{"id":148},{"id":149},{"id":150},{"id":151},{"id":152},{"id":134},{"id":136},{"id":118},{"id":119},{"id":122},{"id":124},{"id":126},{"id":128},{"id":130},{"id":132},{"id":138},{"id":140},{"id":142},{"id":143},{"id":144},{"id":145},{"id":146},{"id":169},{"id":76},{"id":77},{"id":78}],"localParams":[{"prop":"task.name","direct":"IN","type":"VARCHAR","value":"restore_from_checkpoint_test.sql","deleteScript":"-n"},{"prop":"task.script.file","direct":"IN","type":"VARCHAR","value":"Projects/feature-works/tasks/stream/jianghua_test/restore_from_checkpoint_test.sql","deleteScript":"-f"},{"prop":"task.execution.parallel","direct":"IN","type":"VARCHAR","value":"3","deleteScript":"-p"},{"prop":"task.execution.slots","direct":"IN","type":"VARCHAR","value":"10","deleteScript":"-s"},{"prop":"task.execution.yjm","direct":"IN","type":"VARCHAR","value":"4096m","deleteScript":"-j"},{"prop":"task.execution.ytm","direct":"IN","type":"VARCHAR","value":"4096m","deleteScript":"-w"},{"prop":"task.instance.id","direct":"IN","type":"VARCHAR","value":"${system.task.instance.id}"},{"prop":"task.execute.path","direct":"IN","type":"VARCHAR","value":"${system.task.execute.path}"}],"rawScript":"chmod +x ${task.execute.path}/${datamax.home}/${datamax.version}/bin/*\n\n${task.execute.path}/${datamax.home}/${datamax.version}/bin/start.sh -m ${run.mode} -n ${task.name} -f ${task.script.file} -p ${task.execution.parallel} -s ${task.execution.slots} -j ${task.execution.yjm} -w ${task.execution.ytm} -r ${repository.home} -b ${task.execute.path} -c ${datamax.home}/${datamax.version}/lib/${datamax.core.jar} -l ${flink.home}/${flink.version} -e ${profile.home}/${run.mode}"},"preTasks":[],"preTaskNodeList":[],"extras":null,"depList":[],"dependence":{},"conditionResult":{"successNode":[""],"failedNode":[""]},"taskInstancePriority":"MEDIUM","workerGroup":"default","timeout":{"enable":false,"strategy":null,"interval":0},"delayTime":0}],"globalParams":[{"prop":"repository.home","direct":"IN","type":"VARCHAR","value":"/data/online/datamax-repository"},{"prop":"run.mode","direct":"IN","type":"VARCHAR","value":"stream"},{"prop":"flink.home","direct":"IN","type":"VARCHAR","value":"./flink/"},{"prop":"datamax.home","direct":"IN","type":"VARCHAR","value":"./datamax/"},{"prop":"datamax.core.jar","direct":"IN","type":"VARCHAR","value":"platform-on-flink_1.13.0-2.0-SNAPSHOT.jar"},{"prop":"flink.version","direct":"IN","type":"VARCHAR","value":"1.13.0"},{"prop":"datamax.version","direct":"IN","type":"VARCHAR","value":"2.0.0"},{"prop":"profile.home","direct":"IN","type":"VARCHAR","value":"./profile/prod"},{"prop":"root.home","direct":"IN","type":"VARCHAR","value":"/data/online/datamax-repository"},{"prop":"current.date","direct":"IN","type":"VARCHAR","value":"${system.biz.curdate}"}],"timeout":0,"tenantId":4}}
[ERROR] 2021-07-22 11:51:07.697 org.apache.dolphinscheduler.api.exceptions.ApiExceptionHandler:[46] - 更新工作流定义错误
org.springframework.dao.DataIntegrityViolationException:
### Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)
### The error may exist in org/apache/dolphinscheduler/dao/mapper/TaskDefinitionMapper.java (best guess)
### The error may involve org.apache.dolphinscheduler.dao.mapper.TaskDefinitionMapper.updateById-Inline
### The error occurred while setting parameters
### SQL: UPDATE t_ds_task_definition SET fail_retry_times=?, flag=?, code=?, task_priority=?, update_time=?, task_params=?, user_id=?, version=?, timeout=?, task_type=?, timeout_flag=?, create_time=?, project_code=?, fail_retry_interval=?, name=?, delay_time=?, worker_group=?, resource_ids=? WHERE id=?
### Cause: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)
; ERROR: value too long for type character varying(255); nested exception is org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)
at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:104)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:74)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)
at com.sun.proxy.$Proxy101.update(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.update(SqlSessionTemplate.java:287)
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:63)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:61)
at com.sun.proxy.$Proxy122.updateById(Unknown Source)
at org.apache.dolphinscheduler.service.process.ProcessService.updateTaskDefinition(ProcessService.java:2156)
at org.apache.dolphinscheduler.service.process.ProcessService.handleTaskDefinition(ProcessService.java:2282)
at org.apache.dolphinscheduler.service.process.ProcessService.saveProcessDefinition(ProcessService.java:2212)
at org.apache.dolphinscheduler.service.process.ProcessService$$FastClassBySpringCGLIB$$ed138739.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
at org.apache.dolphinscheduler.service.process.ProcessService$$EnhancerBySpringCGLIB$$d02bc54d.saveProcessDefinition(<generated>)
at org.apache.dolphinscheduler.api.service.impl.ProcessDefinitionServiceImpl.updateProcessDefinition(ProcessDefinitionServiceImpl.java:418)
at org.apache.dolphinscheduler.api.service.impl.ProcessDefinitionServiceImpl$$FastClassBySpringCGLIB$$e8e34ed9.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
at org.apache.dolphinscheduler.api.service.impl.ProcessDefinitionServiceImpl$$EnhancerBySpringCGLIB$$4564e02d.updateProcessDefinition(<generated>)
at org.apache.dolphinscheduler.api.controller.ProcessDefinitionController.updateProcessDefinition(ProcessDefinitionController.java:242)
at org.apache.dolphinscheduler.api.controller.ProcessDefinitionController$$FastClassBySpringCGLIB$$dc9bf5db.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:752)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
at org.apache.dolphinscheduler.api.aspect.AccessLogAspect.doAround(AccessLogAspect.java:86)
at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)
at org.apache.dolphinscheduler.api.controller.ProcessDefinitionController$$EnhancerBySpringCGLIB$$22f5b91d.updateProcessDefinition(<generated>)
at sun.reflect.GeneratedMethodAccessor622.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763)
at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1633)
at com.github.xiaoymin.swaggerbootstrapui.filter.SecurityBasicAuthFilter.doFilter(SecurityBasicAuthFilter.java:84)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
at com.github.xiaoymin.swaggerbootstrapui.filter.ProductionSecurityFilter.doFilter(ProductionSecurityFilter.java:53)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:97)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:94)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:561)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1612)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1582)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:766)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:516)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:143)
at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:132)
at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:497)
at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:47)
at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74)
at sun.reflect.GeneratedMethodAccessor431.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:63)
at com.sun.proxy.$Proxy177.update(Unknown Source)
at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.doUpdate(MybatisSimpleExecutor.java:54)
at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:197)
at sun.reflect.GeneratedMethodAccessor505.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426)
... 111 common frames omitted
```
**Requirement or improvement**
- I suggest to add some validation to check fields in the form.
| https://github.com/apache/dolphinscheduler/issues/5876 | https://github.com/apache/dolphinscheduler/pull/6457 | 6495a204f3f5520f3ebce8b939f1254ee676facc | ba4cb9d22ad02ba4927fd23ea811c82639261e69 | 2021-07-22T06:00:38Z | java | 2021-10-14T07:31:06Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,830 | ["dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue", "dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue"] | [Improvement][Web] Improve the selection style in dag edit dialog | *For better global communication, please give priority to using English description, thx! *
**Describe the question**
When we want to select all or part of the text in the input box, because the selected background color is too similar to the original background color, users often think that the text cannot be selected

**Which version of DolphinScheduler:**
latest dev branch
**Describe alternatives you've considered**
A clear and concise description of any alternative improvement solutions you've considered.
| https://github.com/apache/dolphinscheduler/issues/5830 | https://github.com/apache/dolphinscheduler/pull/5829 | bca92157a088c78d245ff60dfee2504ea8716c6a | 8db1b042b2523bd3b6ed363303283308ea14b2cc | 2021-07-16T07:23:41Z | java | 2021-07-27T15:54:07Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,825 | ["dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/resourceTree.js", "dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/flink.vue", "dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/mr.vue", "dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/python.vue", "dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue", "dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/spark.vue", "dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/waterdrop.vue"] | [Bug][WEB] the resource tree in the process definition of latest dev branch can't display correctly. |
A clear and concise description of what the bug is.
When we add multiple resources to a existed process definition and reopen the edit page, the resource list would't show as expected and throws an undefined exception.

**Which version of Dolphin Scheduler:**
latest dev
| https://github.com/apache/dolphinscheduler/issues/5825 | https://github.com/apache/dolphinscheduler/pull/5826 | 5e343d3fd21ceb2bf141e7b70524b5b3eb5fb87b | 6964c090c7a1cb3d1d69f5fe70ca3025df9b4be3 | 2021-07-15T16:27:00Z | java | 2021-07-20T12:48:58Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,808 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/datax/DataxTask.java"] | [Bug][Server] When we try to transfer data using datax between different types of data sources, the worker will exit with ClassCastException |
**Describe the bug**
When we try to transfer data using datax between different types of data sources, the worker will exit with ClassCastException

```java
[INFO] 2021-07-12 23:36:28.682 - [taskAppId=TASK-545173233664_3-3-3]:[464] - try to execute sql analysis query column name
[ERROR] 2021-07-12 23:36:28.688 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[171] - task scheduler failure
java.lang.RuntimeException: java.lang.ClassCastException: org.apache.dolphinscheduler.common.datasource.clickhouse.ClickhouseConnectionParam cannot be cast to org.apache.dolphinscheduler.common.datasource.mysql.MysqlConnectionParam
at org.apache.dolphinscheduler.common.datasource.DatasourceUtil.getConnection(DatasourceUtil.java:84)
at org.apache.dolphinscheduler.server.worker.task.datax.DataxTask.tryExecuteSqlResolveColumnNames(DataxTask.java:557)
at org.apache.dolphinscheduler.server.worker.task.datax.DataxTask.parsingSqlColumnNames(DataxTask.java:465)
at org.apache.dolphinscheduler.server.worker.task.datax.DataxTask.buildDataxJobContentJson(DataxTask.java:286)
at org.apache.dolphinscheduler.server.worker.task.datax.DataxTask.buildDataxJsonFile(DataxTask.java:215)
at org.apache.dolphinscheduler.server.worker.task.datax.DataxTask.handle(DataxTask.java:166)
at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:159)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
at java.util.concurrent.FutureTask.run(FutureTask.java)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassCastException: org.apache.dolphinscheduler.common.datasource.clickhouse.ClickhouseConnectionParam cannot be cast to org.apache.dolphinscheduler.common.datasource.mysql.MysqlConnectionParam
at org.apache.dolphinscheduler.common.datasource.mysql.MysqlDatasourceProcessor.getConnection(MysqlDatasourceProcessor.java:113)
at org.apache.dolphinscheduler.common.datasource.DatasourceUtil.getConnection(DatasourceUtil.java:82)
... 12 common frames omitted
```
**Which version of Dolphin Scheduler:**
latest dev
**Additional context**
Add any other context about the problem here.
**Requirement or improvement**
- Please describe about your requirements or improvement suggestions.
| https://github.com/apache/dolphinscheduler/issues/5808 | https://github.com/apache/dolphinscheduler/pull/5809 | 4c0993cdf490eb0898fba42908270d10dff32001 | bca92157a088c78d245ff60dfee2504ea8716c6a | 2021-07-12T15:48:53Z | java | 2021-07-27T07:46:15Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,795 | ["dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/DateUtils.java", "dolphinscheduler-common/src/test/java/org/apache/dolphinscheduler/common/utils/DateUtilsTest.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/http/HttpTask.java"] | [Improvement][Server] The starttime field in the HttpTask log is not displayed as expected. | *For better global communication, please give priority to using English description, thx! *
*Please review https://dolphinscheduler.apache.org/en-us/community/development/issue.html when describe an issue.*
**Describe the question**

```java
long costTime = System.currentTimeMillis() - startTime;
logger.info("startTime: {}, httpUrl: {}, httpMethod: {}, costTime : {}Millisecond, statusCode : {}, body : {}, log : {}",
DateUtils.format2Readable(startTime), httpParameters.getUrl(), httpParameters.getHttpMethod(), costTime, statusCode, body, output);
public static String format2Readable(long ms) {
long days = MILLISECONDS.toDays(ms);
long hours = MILLISECONDS.toDurationHours(ms);
long minutes = MILLISECONDS.toDurationMinutes(ms);
long seconds = MILLISECONDS.toDurationSeconds(ms);
return String.format("%02d %02d:%02d:%02d", days, hours, minutes, seconds);
}
```
The API `format2Readable` is intended to display the execution time of a task more friendly, such as how many days and hours it has been executed.
It's better to convert the timestamp to a formatted time according to a specified `DateTimeFormatter`
**Which version of DolphinScheduler:**
latest dev branch
**Describe alternatives you've considered**
A clear and concise description of any alternative improvement solutions you've considered.
| https://github.com/apache/dolphinscheduler/issues/5795 | https://github.com/apache/dolphinscheduler/pull/5796 | 16986c3c651af38469c6d4cb03a587fd174c9a9b | 7bffe0ac85b0147210facdeedc531026b0022e6f | 2021-07-11T07:49:32Z | java | 2021-07-12T06:31:48Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,786 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/MasterRegistryDataListener.java"] | [Improvement][Server] When the Worker turns down, the MasterServer cannot handle the Remove event correctly and throws NPE | **Describe the question**
When the Worker turns down, the MasterServer cannot handle the Remove event correctly and throws an NPE exception:
```java
[ERROR] 2021-07-10 00:27:52.736 org.apache.curator.framework.recipes.cache.TreeCache:[779] -
java.lang.NullPointerException: null
at org.apache.dolphinscheduler.server.master.registry.MasterRegistryDataListener.handleWorkerEvent(MasterRegistryDataListener.java:83)
at org.apache.dolphinscheduler.server.master.registry.MasterRegistryDataListener.notify(MasterRegistryDataListener.java:47)
at org.apache.dolphinscheduler.spi.register.ListenerManager.dataChange(ListenerManager.java:63)
at org.apache.dolphinscheduler.plugin.registry.zookeeper.ZookeeperRegistry.lambda$subscribe$0(ZookeeperRegistry.java:166)
at org.apache.curator.framework.recipes.cache.TreeCache$2.apply(TreeCache.java:760)
at org.apache.curator.framework.recipes.cache.TreeCache$2.apply(TreeCache.java:754)
at org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:100)
at org.apache.curator.shaded.com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30)
at org.apache.curator.framework.listen.ListenerContainer.forEach(ListenerContainer.java:92)
at org.apache.curator.framework.recipes.cache.TreeCache.callListeners(TreeCache.java:753)
at org.apache.curator.framework.recipes.cache.TreeCache.access$1900(TreeCache.java:75)
at org.apache.curator.framework.recipes.cache.TreeCache$4.run(TreeCache.java:865)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
at java.util.concurrent.FutureTask.run(FutureTask.java)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
```
**What are the current deficiencies and the benefits of improvement**
```java
public class MasterRegistryDataListener implements SubscribeListener {
private static final Logger logger = LoggerFactory.getLogger(MasterRegistryDataListener.class);
@Resource
private MasterRegistryClient masterRegistryClient;
```
The `MasterRegistryDataListener` class will be used by `MasterRegistryClient`, as shown below:
```java
// line 123
registryClient.subscribe(REGISTRY_DOLPHINSCHEDULER_NODE, new MasterRegistryDataListener());
```
**The @Resource annotation will not take effect in the current case, it would be assigned to null**
**Which version of DolphinScheduler:**
latest dev branch
| https://github.com/apache/dolphinscheduler/issues/5786 | https://github.com/apache/dolphinscheduler/pull/5787 | 9fd5145b66646f3df847ea3c81bb272621ee86ca | 626c47399af4b7e8a839165d9d36fdbe04cc54cd | 2021-07-09T16:44:12Z | java | 2021-07-09T17:08:16Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,778 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/SchedulerController.java", "dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/SchedulerService.java", "dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/SchedulerServiceImpl.java", "dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/controller/SchedulerControllerTest.java", "dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js"] | [Feature][JsonSplit-api]schedule list、preview、delete interface | from #5498
Change the request parameter projectName to projectCode,including the front end and controller interface | https://github.com/apache/dolphinscheduler/issues/5778 | https://github.com/apache/dolphinscheduler/pull/5779 | 72535a47e3dafc68c457996ea6e01b8da17685aa | d2a9e05a664a9bf12a29ae1873183b0173c0bf49 | 2021-07-09T08:56:03Z | java | 2021-07-12T02:21:17Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,775 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractTask.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/PythonCommandExecutor.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/ShellCommandExecutor.java", "dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/worker/task/sqoop/SqoopTaskTest.java"] | [Improvement][Worker] Task log may be lost | **Describe the question**
All the code in this issue is at `AbstractCommandExecutor`.
If you have seen the task logging code in DolphinScheduler, you probably know that we currently use the production-consumption model for logging.
We use one thread to write the log to the collection.
https://github.com/apache/dolphinscheduler/blob/b114d330ac1fa7de27e09cc73c0804a7536f3b28/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java#L351-L371
And we use another thread to consumer the log from collection and write to log file.
https://github.com/apache/dolphinscheduler/blob/b114d330ac1fa7de27e09cc73c0804a7536f3b28/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java#L375-L390
https://github.com/apache/dolphinscheduler/blob/b114d330ac1fa7de27e09cc73c0804a7536f3b28/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java#L549-L562
The problem is that when executing between line 558 and line 560, the logs added to the collection will be lost.(`logHandler.accept` will take some time).
**Which version of DolphinScheduler:**
-[1.3.6-release]
-[dev]
**Describe alternatives you've considered**
There are two ways to solve the issue:
1. We can use a block queue to store the log instead of using `Collections.synchronizedList`.
2. We can direct use a read write lock to in `AbstractCommandExecutor` to solve the concurrent problem, instead of using `Collections.synchronizedList`
| https://github.com/apache/dolphinscheduler/issues/5775 | https://github.com/apache/dolphinscheduler/pull/5783 | 626c47399af4b7e8a839165d9d36fdbe04cc54cd | 30af55b82ae560a5300930af062ad3a88d542e3d | 2021-07-08T13:49:44Z | java | 2021-07-09T17:14:59Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,773 | ["dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java", "dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/JSONUtils.java", "dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/LoggerUtils.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/ParamUtils.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/ShellCommandExecutor.java", "dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/shell/ShellTask.java", "dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/utils/ParamUtilsTest.java", "dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/worker/shell/ShellCommandExecutorTest.java"] | [Improvement][server] need to support two parameters related to task | **Describe the question**
When I'm using the shell task ,I need the instance id of task and the absolute path of task.
**What are the current deficiencies and the benefits of improvement**
**Which version of DolphinScheduler:**
-[dev]
**Describe alternatives you've considered**
| https://github.com/apache/dolphinscheduler/issues/5773 | https://github.com/apache/dolphinscheduler/pull/5774 | ab527a5e5abd04243305a50f184d8009b9edf21a | 9fd5145b66646f3df847ea3c81bb272621ee86ca | 2021-07-08T10:01:12Z | java | 2021-07-09T09:00:32Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,769 | ["dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js"] | [Improvement][UI] When we try to delete the existing dag, the console in web browser would shows exception. | version: latest dev


| https://github.com/apache/dolphinscheduler/issues/5769 | https://github.com/apache/dolphinscheduler/pull/5770 | 4a68bfbe1c816f9b1f2f43c1f01218689b57ed6f | 8571461fe8c0eea9cdb9738be87e43f827f8e00f | 2021-07-08T05:09:36Z | java | 2021-07-21T10:50:32Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,763 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/SchedulerController.java", "dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/SchedulerService.java", "dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/SchedulerServiceImpl.java", "dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/controller/SchedulerControllerTest.java", "dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/SchedulerServiceTest.java", "dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js"] | [Feature][JsonSplit-api]schedule online/offline interface | from #5498
Change the request parameter projectName to projectCode,including the front end and controller interface | https://github.com/apache/dolphinscheduler/issues/5763 | https://github.com/apache/dolphinscheduler/pull/5764 | cfa22d7c89bcd8e35b8a286b39b67b9b36b3b4dc | e4f427a8d8bf99754698e054845291a5223c2ea6 | 2021-07-07T11:37:00Z | java | 2021-07-08T05:59:40Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,741 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java"] | [Improvement][Worker] Improve task process status log | **Describe the question**
In the AbstractCommandExecutor, after the task process executed, it will log the status.
We need to move the log from line 206 to line 227, the `result.getExitStatusCode()` is always 0, because we did not assign value.
https://github.com/apache/dolphinscheduler/blob/2ba569acd028c00c22f4853de7c58251ac72816c/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java#L157-L206
**Which version of DolphinScheduler:**
-[1.3.6]
-[dev]
| https://github.com/apache/dolphinscheduler/issues/5741 | https://github.com/apache/dolphinscheduler/pull/5776 | b114d330ac1fa7de27e09cc73c0804a7536f3b28 | ab527a5e5abd04243305a50f184d8009b9edf21a | 2021-07-03T08:43:03Z | java | 2021-07-08T16:28:00Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,738 | ["dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/relatedItems.vue"] | [Improvement][UI] The cancel button in the pop-up dialog of `batch copy` and `batch move` doesn't work. | The cancel button in the pop-up dialog of `batch copy` and `batch move` doesn't work.
When we click the cancel button, the dialog can't close.

| https://github.com/apache/dolphinscheduler/issues/5738 | https://github.com/apache/dolphinscheduler/pull/5739 | 7a18adae5261e37def2ca1ede0320043d18abfab | b114d330ac1fa7de27e09cc73c0804a7536f3b28 | 2021-07-02T11:18:26Z | java | 2021-07-08T10:18:20Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,737 | ["dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/datasource/AbstractDatasourceProcessor.java", "dolphinscheduler-common/src/test/java/org/apache/dolphinscheduler/common/datasource/DatasourceUtilTest.java"] | [Bug][Datasource] datsource other param check error | when add a mysql datasource, I wan't to set connec param with `serverTimezone=Asia/Shanghai`
so add other param with json format `{"serverTimezone":"Asia/Shanghai"}`
but the check rule make the param not working.
the `Pattern PARAMS_PATTER = Pattern.compile("^[a-zA-Z0-9]+$");` make '/' illegal.
| https://github.com/apache/dolphinscheduler/issues/5737 | https://github.com/apache/dolphinscheduler/pull/5835 | 9ae2266cd40071db86cd02da829e39529f74fbeb | 2df6ee1efbe4aec0f5579315a1b19e247f4115a6 | 2021-07-02T06:02:42Z | java | 2021-07-18T13:46:58Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,726 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/DataSourceServiceImpl.java", "dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/UserMapper.xml", "dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/_source/createDataSource.vue", "dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/_source/createWarning.vue", "dolphinscheduler-ui/src/js/conf/home/pages/user/pages/token/_source/createToken.vue", "dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js", "dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js"] | [Improvement][UI] When we used the UI page, we found some problems such as parameter validation, parameter update shows success but actually work | ### 1.When editing an existing data source, the data source type does not actually support switching, preferably not editing


### 2.When editing an existing data source, the name of the existing data source is changed to show success, but does not actually take effect.
### 3.When a token is created, the expiration time can be set to empty, result in an illegal parameter and it can create success:


### 4.Non-Admin user profile page does not display tenant information

 | https://github.com/apache/dolphinscheduler/issues/5726 | https://github.com/apache/dolphinscheduler/pull/5727 | 00e76558be001dc72cf60f4db93c881ed98db95a | 1f0c67bfb772f46a0e7d6289b13a499aae403fe3 | 2021-06-30T12:28:11Z | java | 2021-07-14T05:51:10Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,725 | [".github/workflows/ci_ut.yml", "style/checkstyle.xml"] | [Bug][CheckStyle] Import checkstyle config file in idea's checkstyle plugin, get a CheckStyleException | Import checkstyle config file(https://github.com/apache/dolphinscheduler/blob/dev/style/checkstyle.xml), IDEA throw a CheckStyleException. The information is as follows:
**Which version of Dolphin Scheduler:**
-[dev]
**Idea info:**

**Exception info:**

| https://github.com/apache/dolphinscheduler/issues/5725 | https://github.com/apache/dolphinscheduler/pull/5789 | 30af55b82ae560a5300930af062ad3a88d542e3d | 16986c3c651af38469c6d4cb03a587fd174c9a9b | 2021-06-30T08:41:21Z | java | 2021-07-10T16:31:45Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,719 | ["docker/kubernetes/dolphinscheduler/templates/ingress.yaml"] | [Bug][K8s] Ingress ERROR io.k8s.api.networking.v1beta1.IngressSpec.tls: got "map", expected "array" On TLS enabled | Ingress ERROR io.k8s.api.networking.v1beta1.IngressSpec.tls: got "map", expected "array" On TLS enabled
**Expected behavior**
Bug fixed
**Which version of Dolphin Scheduler:**
-[dev]
-[1.3.6]
**Additional context**
Add any other context about the problem here.
**Requirement or improvement**
- Please describe about your requirements or improvement suggestions.
| https://github.com/apache/dolphinscheduler/issues/5719 | https://github.com/apache/dolphinscheduler/pull/5718 | 2df6ee1efbe4aec0f5579315a1b19e247f4115a6 | 5e343d3fd21ceb2bf141e7b70524b5b3eb5fb87b | 2021-06-29T14:42:43Z | java | 2021-07-20T03:21:34Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,714 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/AlertPluginInstanceServiceImpl.java", "dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/AlertPluginInstance.java", "dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/AlertPluginInstanceMapper.xml"] | [Improvement][Plugin] When updating the existing alarm instance, the `creation time` should't be updated. | When updating the existing alarm instance, it would cause the `creation time` to be always same with the `modification time`
+ when create a new alam instance, `creation time` and `update time` is same, it's right.

+ when I try to update the existing alarm instance, after updating success, the 'creation time' changes, it's wrong:

| https://github.com/apache/dolphinscheduler/issues/5714 | https://github.com/apache/dolphinscheduler/pull/5715 | 2ba569acd028c00c22f4853de7c58251ac72816c | cf99df3de00ef63ee96b7ab00427c7385c42720a | 2021-06-29T11:45:35Z | java | 2021-07-04T15:46:47Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,710 | ["dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/plugin/AlertPluginManager.java", "dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/plugin/DolphinPluginLoader.java"] | [Improvement][ALERT-LOG] The usage of Preconditions.checkState in Guava is wrong |
The usage of Preconditions.checkState in Guava is wrong, the placeholder should use the form of %s instead of {}
like this: [DolphinPluginLoader.java#L107](https://github.com/apache/dolphinscheduler/blob/3d8d1ebe67cc3331ff5fda649675b5c61a04df5f/dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/plugin/DolphinPluginLoader.java#L107)
```java
private void loadPlugin(URLClassLoader pluginClassLoader) {
ServiceLoader<DolphinSchedulerPlugin> serviceLoader = ServiceLoader.load(DolphinSchedulerPlugin.class, pluginClassLoader);
List<DolphinSchedulerPlugin> plugins = ImmutableList.copyOf(serviceLoader);
Preconditions.checkState(!plugins.isEmpty(), "No service providers the plugin {}",DolphinSchedulerPlugin.class.getName());
for (DolphinSchedulerPlugin plugin : plugins) {
logger.info("Installing {}", plugin.getClass().getName());
for (AbstractDolphinPluginManager dolphinPluginManager : dolphinPluginManagerList) {
dolphinPluginManager.installPlugin(plugin);
}
}
}
```
we can reproduce this like this simple sample:
```java
public class Test {
public static void main(String[] args) {
String word = "letters";
checkState(word.isEmpty(), "Alert Plugin {} is not null", word);
}
}
```
the result is:
**Alert Plugin {} is not null [letters]**
but we actually want to show the message like this:
**Alert Plugin letters is not null** | https://github.com/apache/dolphinscheduler/issues/5710 | https://github.com/apache/dolphinscheduler/pull/5711 | 3d8d1ebe67cc3331ff5fda649675b5c61a04df5f | 239cfe5027b558abe1f17b1e7dd38504f10ab3e0 | 2021-06-28T16:34:24Z | java | 2021-06-28T17:03:52Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,702 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/AlertPluginInstanceController.java", "dolphinscheduler-ui/src/js/conf/home/store/security/actions.js"] | [Improvement] [APIServer] When update the existing alarm plug-in instance, the api should use POST instead of GET |
When update the existing alarm plug-in instance, the front-end and back-end interaction should use POST method instead of GET.
 | https://github.com/apache/dolphinscheduler/issues/5702 | https://github.com/apache/dolphinscheduler/pull/5703 | b31ba7e18b89885c37c2129bf9b4816001f09e51 | 2d71930837092c52dc63a76941b19051ae38cc2e | 2021-06-26T14:53:59Z | java | 2021-06-27T10:58:22Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,701 | ["dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java", "dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/UsersServiceTest.java", "dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/AccessTokenMapper.java", "dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/AccessTokenMapper.xml", "dolphinscheduler-dao/src/test/java/org/apache/dolphinscheduler/dao/mapper/AccessTokenMapperTest.java"] | [Bug][UI][DAO]When deleting a user, the accessToken associated with the user should also be deleted | When deleting a user, the accessToken associated with the user should be also deleted
1. create a normal user

2. add an accesstoken associated with the user created in the step 1.

3. delete the user created in the step 1, then have a look at the accessToken:

**Which version of Dolphin Scheduler:**
1.3.7-release
| https://github.com/apache/dolphinscheduler/issues/5701 | https://github.com/apache/dolphinscheduler/pull/5697 | 239cfe5027b558abe1f17b1e7dd38504f10ab3e0 | 8d7d3a816672c196cf827055ce0221efcac68b55 | 2021-06-26T13:17:23Z | java | 2021-06-28T17:27:39Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,699 | ["dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue"] | [Bug][UI] Update user error in user information | **To Reproduce**
User Infomation Page-> Click Edit Buttom -> popup Edit User Dalog -> Click Edit Button to finish the edit action.
**Expected behavior**
Bug fixed
**Screenshots**

**Which version of Dolphin Scheduler:**
-[1.3.6]
-[dev]
| https://github.com/apache/dolphinscheduler/issues/5699 | https://github.com/apache/dolphinscheduler/pull/5735 | 596821a5b691622487863d1e53a147453d435ab7 | 00e76558be001dc72cf60f4db93c881ed98db95a | 2021-06-26T03:56:38Z | java | 2021-07-14T05:49:21Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,668 | ["dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/datasource.vue"] | [Feature][UI] Data source selection drop-down box optimization | 

这个下拉框去修改的时候 没有默认展示当前选中的 每次都是从第一条开始往下滑动
能否优化为 点击下拉框时 就定位在回显的那条数据上
或者
优化修改此类下拉框支持 搜索
| https://github.com/apache/dolphinscheduler/issues/5668 | https://github.com/apache/dolphinscheduler/pull/6851 | 36c19748a6da24f23f59db7d08d61004e6dcbac5 | 44b24cd3df8a42f0809beb019baacd072ef800f7 | 2021-06-21T07:35:36Z | java | 2021-11-15T09:21:34Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,655 | ["dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/cache/impl/TaskInstanceCacheManagerImpl.java"] | [Bug][Master] Task always failed. | Currently, if we have to two tasks A and in one DAG with A -> B. The execution result of A will always be judged as `Failure` by line 919

since the task id is alway 0. This mistake is releated to this [PR](https://github.com/apache/dolphinscheduler/pull/5572/files?file-filters%5B%5D=.java#diff-8e3989af7cb0208a57e34d7797a5fd4b84b96eb4a1f5064ec0cb0482fcf322ccL80).

where we didn't set the `id` of cached TaskInstance.
**Which version of Dolphin Scheduler:**
-[dev]
| https://github.com/apache/dolphinscheduler/issues/5655 | https://github.com/apache/dolphinscheduler/pull/5656 | 3026f04d8528a63f26d9b62da00a495c8e9f47ab | 0d7c32a1e829202d8359f112383b1b56eec6653d | 2021-06-17T09:30:01Z | java | 2021-06-17T10:45:34Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,653 | ["dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessTaskRelationLogMapper.xml", "dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessTaskRelationMapper.xml", "dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskDefinitionLogMapper.xml", "dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskDefinitionMapper.xml"] | [Bug][API] Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: ` character varying |
**Describe the bug**
Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: ` character varying

**To Reproduce**
Create a workflow definition
**Which version of Dolphin Scheduler:**
-[dev]
| https://github.com/apache/dolphinscheduler/issues/5653 | https://github.com/apache/dolphinscheduler/pull/5654 | 0d7c32a1e829202d8359f112383b1b56eec6653d | b21e821845ba7e6a8609b1a79502ea0067085293 | 2021-06-17T08:16:25Z | java | 2021-06-17T13:23:39Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,634 | [".gitignore", "dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/src/main/resources/logback.xml", "dolphinscheduler-server/src/main/resources/config/install_config.conf", "dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/registry/RegistryCenter.java", "dolphinscheduler-service/src/main/resources/registry.properties", "install.sh"] | [Improvement][registry-plugin] Optimize registry plugin loading and initial installation | **Describe the question**
Optimize registry plugin loading and initial installation
**What are the current deficiencies and the benefits of improvement**
- Registry Plugin install dir attribute assignment.
- Add registry Plugin to initialize and install related properties
**Which version of DolphinScheduler:**
-[dev]
| https://github.com/apache/dolphinscheduler/issues/5634 | https://github.com/apache/dolphinscheduler/pull/5635 | 9d70c7e534aa10e729d564f14a1126f623cd1035 | e2d6265e26b27abdf0a212289cca9c0cdad1e0a6 | 2021-06-15T10:45:19Z | java | 2021-06-15T12:51:52Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,622 | ["dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js", "dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js"] | [Improvement][project management] Modify the title | *For better global communication, please give priority to using English description, thx! *
*Please review https://dolphinscheduler.apache.org/en-us/community/development/issue.html when describe an issue.*
**Describe the question**
“项目管理”功能模块中“项目首页”菜单与页面内容关系不大。.
**What are the current deficiencies and the benefits of improvement**
- “项目首页”文字,修改成“工作流监控”.
**Which version of DolphinScheduler:**
-[1.3.7]
**Describe alternatives you've considered**
A clear and concise description of any alternative improvement solutions you've considered.
| https://github.com/apache/dolphinscheduler/issues/5622 | https://github.com/apache/dolphinscheduler/pull/5723 | ee0a4391e7a21ef7773eba015fa783ff616ac4a6 | 2ba569acd028c00c22f4853de7c58251ac72816c | 2021-06-10T13:47:51Z | java | 2021-06-30T05:23:06Z |
closed | apache/dolphinscheduler | https://github.com/apache/dolphinscheduler | 5,621 | ["dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml"] | [Improvement][job instance]start-time and end-time | *For better global communication, please give priority to using English description, thx! *
*Please review https://dolphinscheduler.apache.org/en-us/community/development/issue.html when describe an issue.*
**Describe the question**
工作流实例列表中,如果多个工作流存在依赖关系,最后的工作流任务时长是累计时长,还有,这个排序好像只是按照开始时间排序的,希望能做成开始时间一样,按照结束时间再排一下.
**What are the current deficiencies and the benefits of improvement**
- A clear and concise description of the current deficiencies and the benefits of this improvement.
**Which version of DolphinScheduler:**
-[1.3.6]
**Describe alternatives you've considered**
A clear and concise description of any alternative improvement solutions you've considered.
| https://github.com/apache/dolphinscheduler/issues/5621 | https://github.com/apache/dolphinscheduler/pull/5797 | 7bffe0ac85b0147210facdeedc531026b0022e6f | 70fef3daed5cb5add90dd3ada3d753533dea59ae | 2021-06-10T13:43:25Z | java | 2021-07-12T06:36:09Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.