GitHub user hustfxj opened a pull request:

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

    [SPARK-18959] the new leader will  lost the statistics of the driver's 
resource on the worker.

    
    I deploy the standalone cluster with two masters. and utilizing ZooKeeper 
to provide leader election and some state storage. Firstly, I submit the 
application with cluster mode. Then I kill the leader, and the standby master 
will be the leader. But the new leader will lost the statistics of the driver's 
resource. So I stop the application, we will see the negative used resource at 
the worker from masterPage. 

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

    $ git pull https://github.com/hustfxj/spark bug-fix

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

    https://github.com/apache/spark/pull/16446.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 #16446
    
----
commit d7da7cd2d57ddc996d16453529af7066f9e49bd4
Author: xiaojian.fxj <[email protected]>
Date:   2016-12-31T12:56:24Z

    spark.jars support jar url with http protocal. However, if the url contains 
any query strings,  the "localName = name.split("/").last" won't get the 
expected jar, then "val url = new File(SparkFiles.getRootDirectory(), 
localName).toURI.toURL" will get invalid url. The bug fix is the same as 
[SPARK-17855]

commit c1b9993c568468338b1b4c3626bef214d5e29ba5
Author: xiaojian.fxj <[email protected]>
Date:   2017-01-01T12:29:19Z

    1. the app state still be waiting after standby Master wil be the leader;
     2. the new leader will lost the statistics of the driver's resource on the 
worker;

----


---
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