GitHub user peterableda opened a pull request:

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

    [SPARK-16138] Try to cancel executor requests only if we have at least 1

    ## What changes were proposed in this pull request?
    Adding additional check to if statement
    
    ## How was this patch tested?
    I built and deployed to internal cluster to observe behaviour. After the 
change the invalid logging is gone:
    
    ```
    16/06/22 08:46:36 INFO yarn.YarnAllocator: Driver requested a total number 
of 1 executor(s).
    16/06/22 08:46:36 INFO yarn.YarnAllocator: Canceling requests for 1 
executor container(s) to have a new desired total 1 executors.
    16/06/22 08:46:36 INFO yarn.YarnAllocator: Driver requested a total number 
of 0 executor(s).
    16/06/22 08:47:36 INFO yarn.ApplicationMaster$AMEndpoint: Driver requested 
to kill executor(s) 1.
    ```

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

    $ git pull https://github.com/peterableda/spark patch-2

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

    https://github.com/apache/spark/pull/13850.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 #13850
    
----
commit 974102d67f825fc6324f88d6c532f740e8ae5c76
Author: Peter Ableda <[email protected]>
Date:   2016-06-22T15:51:17Z

    Try to cancel executor requests only if we have at least 1

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to