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/12/23 07:34:42 UTC

[GitHub] [dolphinscheduler] xtr1993 opened a new issue #7578: [Bug] [server] Why getPidStr by pstree only get child process

xtr1993 opened a new issue #7578:
URL: https://github.com/apache/dolphinscheduler/issues/7578


   ### 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
   
   I have a question about dolphinscheduler-server module
   
   please see org.apache.dolphinscheduler.server.utils.ProcessUtils 173 line
   
   `
   if (CommonUtils.isSudoEnable() && !pidList.isEmpty()) {
               pidList = pidList.subList(1, pidList.size());
           }
   `
   
   when sudo.enable pidList from 1 and pidList.size?
   why use this way? 
   maybe only get child process and lost parents process
   
   ### What you expected to happen
   
   I think should this is unnecessary
   
   ### How to reproduce
   
   please see org.apache.dolphinscheduler.server.utils.ProcessUtils 173 line
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   2.0.1
   
   ### 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] github-actions[bot] commented on issue #7578: [Bug] [server] Why getPidStr by pstree only get child process

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


   This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.


-- 
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] closed issue #7578: [Bug] [server] Why getPidStr by pstree only get child process

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #7578:
URL: https://github.com/apache/dolphinscheduler/issues/7578


   


-- 
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 #7578: [Bug] [server] Why getPidStr by pstree only get child process

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


   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
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] zhuangchong commented on issue #7578: [Bug] [server] Why getPidStr by pstree only get child process

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


   1. Dolphin will first start a sudo root process
   2. When kill, kill all child processes, the sudo process will also end
   3. For this piece, why remove the first pid, because the first pid is a root-level process 
   
   ```java
     pidList = pidList.subList(1, pidList.size());
   ```
   When using sudo -u tenant kill -9 pids, it will report insufficient permissions. If this is changed to sudo kill -9 pids, there is no need to remove the first pid above.


-- 
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 #7578: [Bug] [server] Why getPidStr by pstree only get child process

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


   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