Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3359

Check for Process#waitFor() usage and fix it in order to avoid indefinite waiting

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: trunk
    • Fix Version/s: 5.3.0
    • Component/s: None
    • Labels:
      None

      Description

      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. 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kmarton Kinga Marton
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: