You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Julia Kinga Marton (Jira)" <ji...@apache.org> on 2019/08/29 10:38:00 UTC

[jira] [Assigned] (OOZIE-3359) Check for Process#waitFor() usage and fix it in order to avoid indefinite waiting

     [ https://issues.apache.org/jira/browse/OOZIE-3359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julia Kinga Marton reassigned OOZIE-3359:
-----------------------------------------

    Assignee:     (was: Julia Kinga Marton)

> 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
>            Priority: Major
>             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
(v8.3.2#803003)