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/02/09 03:46:06 UTC

[GitHub] [incubator-dolphinscheduler] gabrywu commented on a change in pull request #1910: Adapting partial code(file name start with A) to the sonar cloud rules

gabrywu commented on a change in pull request #1910: Adapting partial code(file name start with A) to the sonar cloud rules
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1910#discussion_r376752427
 
 

 ##########
 File path: dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/shell/AbstractShell.java
 ##########
 @@ -281,7 +283,7 @@ public void run() {
         //Process has not terminated.
         //So check if it has completed 
         //if not just destroy it.
-        if (p != null && !shell.completed.get()) {
+        if (!shell.completed.get()) {
           shell.setTimedOut();
 
 Review comment:
   process vaiable will be assigned before ShellTimeoutTimerTask, so no need to check

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


With regards,
Apache Git Services