[
https://issues.apache.org/jira/browse/OOZIE-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16706948#comment-16706948
]
Andras Piros commented on OOZIE-3390:
-------------------------------------
[~asalamon74] thanks for the review!
Now checking also the return value of {{Process#waitFor(long, TimeUnit)}} to
know whether the process is still running. If it is, returning {{false}}. If it
has already been finished, returning {{exitValue}}. Also returning {{false}} in
case of any and all {{IllegalThreadStateException}} instances happening during
method calls.
> shell action's stderr contains a bogus error message (since 5.0.0)
> -------------------------------------------------------------------
>
> Key: OOZIE-3390
> URL: https://issues.apache.org/jira/browse/OOZIE-3390
> Project: Oozie
> Issue Type: Bug
> Affects Versions: 5.1.0
> Reporter: Attila Sasvari
> Assignee: Julia Kinga Marton
> Priority: Blocker
> Fix For: 5.1.0
>
> Attachments: OOZIE-3390-001.patch, OOZIE-3390-002.patch,
> OOZIE-3390.003.patch, OOZIE-3390.004.patch
>
>
> Shell action's stderr contains an error message about path.
> I executed shell action example to test Oozie 5.1 rc1, the job finished with
> success, but stderr of the job contained "Path echo doesn't appear to exist".
> https://github.com/apache/oozie/blob/27e4bf1688a6a7750b9c8454de5021337696fd61/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/ShellContentWriter.java#L91
> {code}
> writeLine(errorStream, "Path " + filename + " doesn't appear
> to exist");
> {code}
> The problem is that we ignore the PATH of the process.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)