hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7948) Shell scripts created by hadoop-dist/pom.xml to build tar do not properly propagate failure
Date Wed, 04 Jan 2012 17:06:39 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-7948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179644#comment-13179644
] 

Hudson commented on HADOOP-7948:
--------------------------------

Integrated in Hadoop-Common-trunk-Commit #1491 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1491/])
    HADOOP-7948. Shell scripts created by hadoop-dist/pom.xml to build tar do not properly
propagate failure. (cim_michajlomatijkiw via tucu)

tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1227225
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-dist/pom.xml

                
> Shell scripts created by hadoop-dist/pom.xml to build tar do not properly propagate failure
> -------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7948
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7948
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.24.0, 0.23.1
>         Environment: OSX
>            Reporter: Michajlo Matijkiw
>            Assignee: Michajlo Matijkiw
>            Priority: Minor
>             Fix For: 0.23.1
>
>         Attachments: HADOOP-7948.patch
>
>
> The run() function, as defined in dist-layout-stitching.sh and dist-tar-stitching, created
in hadoop-dist/pom.xml, does not properly propagate the error code of a failing command. 
See the following:
> {code}
>     ...
>     "${@}"                 # call fails with non-zero exit code
>     if [ $? != 0 ]; then   
>         echo               
>         echo "Failed!"     
>         echo               
>         exit $?            # $?=result of echo above, likely 0, thus exit with code 0
>     ...
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message