Julia Kinga Marton created OOZIE-3359:
-----------------------------------------

             Summary: Check for Process#waitFor() usage and fix it in order to 
avoid indefinite waiting
                 Key: OOZIE-3359
                 URL: https://issues.apache.org/jira/browse/OOZIE-3359
             Project: Oozie
          Issue Type: Improvement
    Affects Versions: trunk
            Reporter: Julia Kinga Marton
            Assignee: Julia Kinga Marton
             Fix For: 5.2.0


{{Process#waitFor()}} will block until the process finishes. There are 
situations where this will wait indefinitely. A similar case was in 
SshActionExecutor, fixed in OOZIE-3354.

Let's check the code for other usages, and fix it.

Maybe we should check if we can use somehow the Process#waitFor(long timeout, 
TimeUnit timeUnit) instead of it. The tricky part is that this method is 
available only in Java 8. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to