wangbowen1024 commented on issue #7504:
URL:
https://github.com/apache/dolphinscheduler/issues/7504#issuecomment-998068648
> > and i find v1.4.0 in t_ds_version table, so it's right?
>
> i think we can fix it in 2.0.2
emmm,I don't mean the problem with the version information.
I traced the source code and logs again and noticed that
the`MasterSchedulerService` was executing 2 times:
`find one command: id: 3, type: START_PROCESS` . the logs :
```
[INFO] 2021-12-21 00:00:20.326
org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService:[250] -
find command 4, slot:0 :
[INFO] 2021-12-21 00:00:20.327
org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService:[192] -
find one command: id: 4, type: START_PROCESS
[INFO] 2021-12-21 00:00:20.361
org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService:[216] -
handle command end, command 4 process 510 start...
[INFO] 2021-12-21 00:00:20.362
org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService:[250] -
find command 4, slot:0 :
[INFO] 2021-12-21 00:00:20.362
org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService:[192] -
find one command: id: 4, type: START_PROCESS
[ERROR] 2021-12-21 00:00:20.366
org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService:[221] -
scan command error
org.apache.dolphinscheduler.service.exceptions.ServiceException: delete
command fail, id:4
at
org.apache.dolphinscheduler.service.process.ProcessService.deleteCommandWithCheck(ProcessService.java:2479)
at
org.apache.dolphinscheduler.service.process.ProcessService.handleCommand(ProcessService.java:228)
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$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
at
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
at
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698)
at
org.apache.dolphinscheduler.service.process.ProcessService$$EnhancerBySpringCGLIB$$50904475.handleCommand(<generated>)
at
org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService.scheduleProcess(MasterSchedulerService.java:194)
at
org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService.run(MasterSchedulerService.java:176)
[INFO] 2021-12-21 00:00:20.370
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread:[1170] -
add task to stand by list: ppp
[ERROR] 2021-12-21 00:00:20.372
org.apache.dolphinscheduler.service.process.ProcessService:[1043] - task commit
to mysql failed
java.lang.NullPointerException: null
at
org.apache.dolphinscheduler.service.process.ProcessService.submitTask(ProcessService.java:1061)
at
org.apache.dolphinscheduler.service.process.ProcessService.submitTask(ProcessService.java:1032)
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:689)
at
org.apache.dolphinscheduler.service.process.ProcessService$$EnhancerBySpringCGLIB$$50904475.submitTask(<generated>)
at
org.apache.dolphinscheduler.server.master.runner.task.CommonTaskProcessor.submit(CommonTaskProcessor.java:68)
at
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.submitTaskExec(WorkflowExecuteThread.java:620)
at
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.submitStandByTask(WorkflowExecuteThread.java:1273)
at
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.submitPostNode(WorkflowExecuteThread.java:888)
at
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.startProcess(WorkflowExecuteThread.java:505)
at
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.run(WorkflowExecuteThread.java:227)
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)
[ERROR] 2021-12-21 00:00:20.374
org.apache.dolphinscheduler.service.process.ProcessService:[1043] - task commit
to mysql failed
java.lang.NullPointerException: null
at
org.apache.dolphinscheduler.service.process.ProcessService.submitTask(ProcessService.java:1061)
at
org.apache.dolphinscheduler.service.process.ProcessService.submitTask(ProcessService.java:1032)
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:689)
at
org.apache.dolphinscheduler.service.process.ProcessService$$EnhancerBySpringCGLIB$$50904475.submitTask(<generated>)
```
so, i have 2 problem:
1. why the master will select 2 of the same command?
2. ` task commit to mysql failed` i use pg, why have show mysql? and null?
do you know?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]