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 2021/11/29 07:08:07 UTC

[GitHub] [dolphinscheduler] SbloodyS opened a new issue #7037: [Bug] [Data Supplement] process instance can not be killed.

SbloodyS opened a new issue #7037:
URL: https://github.com/apache/dolphinscheduler/issues/7037


   ### 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
   
   Starting a job with data supplement in proccess definition ui.
   
   Stopping process instance with stop button in process instance list ui.
   
   Not only did it not stop, it also restart the same task instance.
   
   ### What you expected to happen
   
   stopping process instance successfully.
   
   ### How to reproduce
   
   Starting a job with data supplement in proccess definition ui.
   
   Stopping process instance with stop button in process instance list ui.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   2.0.0
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


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

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

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



[GitHub] [dolphinscheduler] SbloodyS commented on issue #7037: [Bug] [Data Supplement] process instance can not be killed.

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


   It seems always return true when complement data in org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread#processStateChangeHandler.
   
   ```
       private boolean processStateChangeHandler(StateEvent stateEvent) {
           try {
               logger.info("process:{} state {} change to {}", processInstance.getId(), processInstance.getState(), stateEvent.getExecutionStatus());
               processInstance = processService.findProcessInstanceById(this.processInstance.getId());
               if (processComplementData()) {
                   return true;
               }
               if (stateEvent.getExecutionStatus().typeIsFinished()) {
                   endProcess();
               }
               if (processInstance.getState() == ExecutionStatus.READY_STOP) {
                   killAllTasks();
               }
               return true;
           } catch (Exception e) {
               logger.error("process state change error:", e);
           }
           return true;
       }
   ```


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

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

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



[GitHub] [dolphinscheduler] beimingrx commented on issue #7037: [Bug] [Data Supplement] process instance can not be killed.

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


   部署环境yum安装pstree命令试试


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

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

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



[GitHub] [dolphinscheduler] SbloodyS commented on issue #7037: [Bug] [Data Supplement] process instance can not be killed.

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


   ![](https://files.catbox.moe/v18grn.png)
   
   ```
   [INFO] 2021-11-30 14:39:01.275 org.apache.dolphinscheduler.server.master.processor.StateEventProcessor:[75] - received command : State Event :key: 2-0-2-0 type: PROCESS_STATE_CHANGE executeStatus: READY_STOP task instance id: 0 process instance id: 2 context: null
   [INFO] 2021-11-30 14:39:01.733 org.apache.dolphinscheduler.server.master.runner.EventExecuteService:[126] - handle process instance : 2 , events count:1
   [INFO] 2021-11-30 14:39:01.733 org.apache.dolphinscheduler.server.master.runner.EventExecuteService:[129] - already exists handler process size:0
   [INFO] 2021-11-30 14:39:01.734 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread:[286] - process event: State Event :key: 2-0-2-0 type: PROCESS_STATE_CHANGE executeStatus: READY_STOP task instance id: 0 process instance id: 2 context: null
   [INFO] 2021-11-30 14:39:01.734 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread:[418] - process:2 state RUNNING_EXECUTION change to READY_STOP
   [INFO] 2021-11-30 14:39:01.750 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread:[1141] - add task to stand by list: shell test
   [INFO] 2021-11-30 14:39:01.753 org.apache.dolphinscheduler.service.process.ProcessService:[1065] - start submit task : shell test, instance id:2, state: RUNNING_EXECUTION
   [INFO] 2021-11-30 14:39:01.756 org.apache.dolphinscheduler.service.process.ProcessService:[1078] - end submit task to db successfully:4 shell test state:RUNNING_EXECUTION complete, instance id:2 state: RUNNING_EXECUTION 
   ```


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

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

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



[GitHub] [dolphinscheduler] SbloodyS commented on issue #7037: [Bug] [Data Supplement] process instance can not be killed.

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


   Can someone help me?


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

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

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



[GitHub] [dolphinscheduler] dailidong commented on issue #7037: [Bug] [Data Supplement] process instance can not be killed.

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


   @caishunfeng, please check this issue, thx


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

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

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



[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #7037: [Bug] [Data Supplement] process instance can not be killed.

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


   Hi:
   * Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
   * In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
   * If you haven't received a reply for a long time, you can subscribe to the developer's email,Mail subscription steps reference https://dolphinscheduler.apache.org/en-us/community/development/subscribe.html ,Then write the issue URL in the email content and send question to dev@dolphinscheduler.apache.org.


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

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

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



[GitHub] [dolphinscheduler] lenboo closed issue #7037: [Bug] [Data Supplement] process instance can not be killed.

Posted by GitBox <gi...@apache.org>.
lenboo closed issue #7037:
URL: https://github.com/apache/dolphinscheduler/issues/7037


   


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

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

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