You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2020/10/13 09:58:21 UTC

[GitHub] [incubator-dolphinscheduler] Heltman commented on issue #3696: [Bug] executor process instance error

Heltman commented on issue #3696:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/3696#issuecomment-707632176


   I check the code, and found a bug:
   ![image](https://user-images.githubusercontent.com/44333070/95844736-d627c080-0d7b-11eb-93b0-aae57716d59c.png)
   this is "ProcessInstanceId",but in database,table "t_ds_command" has a wrong data: 
   ![image](https://user-images.githubusercontent.com/44333070/95845023-3e76a200-0d7c-11eb-84de-13fd50e46d35.png) 
   so tmpObj is "processInstanceId":
   ![image](https://user-images.githubusercontent.com/44333070/95845355-a331fc80-0d7c-11eb-9eef-649fabb7909f.png)
   so I got a NullPointerException,Idelete the wrong data, and now it is success!
   
   t_ds_command中的脏数据包含的processInstanceId为小写开头,但是代码里面 却是大写开头的,这是导致空指针的原因,至于脏数据产生的原因,猜测可能是写入mysql时产生了锁,该条数据无法被删除,这也导致了整个ds不会再生成新的调度任务,我是通过重启解决了锁的问题,但是这个脏数据也就永远不会被删除了,而这个脏数据的大小写的问题,可能需要大佬来解释一下了


----------------------------------------------------------------
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.

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