GitHub user zasdfgbnm opened a pull request:

    https://github.com/apache/spark/pull/14231

    [SPARK-16586] Change the way the exit code of launcher is handled to avoid 
problem when launcher fails

    ## What changes were proposed in this pull request?
    
    In the spark-class shell script, the exit code of the launcher is appended 
to the end of the output. However, when the launcher fails, their might not be 
a '\0' at the end of the launcher's output, which makes the test code `[ 
$LAUNCHER_EXIT_CODE != 0 ]` abort with a error `[: too many arguments`
    
    This patch fixes this bug by changing the way the exit code of the launcher 
is passed
    
    ## How was this patch tested?
    
    manually tested

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zasdfgbnm/spark fix_spark-class

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/14231.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #14231
    
----
commit 626be035b656750cc10394a1ed8bbfa021e53aa9
Author: Xiang Gao <qasdfgtyu...@gmail.com>
Date:   2016-07-16T09:00:22Z

    [SPARK-16586]
    change the way the exit code of the laucher is handled so that there won't 
be a
    problem when the launcher fails

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to