GitHub user GayathriMurali opened a pull request:
https://github.com/apache/spark/pull/11257
SPARK-12729. PhantomReference to replace finalize in python broadcastâ¦
## What changes were proposed in this pull request?
Replace finalize() method in PythonBroadcast with Phantom Reference.
Redesigned some portions of the code to better handle the thread to avoid
thread leak. Fixed existing null pointer exceptions. Introduced a new thread
class and a phantom reference class.
## How was the this patch tested?
build/sbt "test-only org.apache.spark.api.python.*" - Passes all tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/GayathriMurali/spark SPARK-12729
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11257.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 #11257
----
commit f0dc402d02cbd84332d52526c60e984d45ef6fb4
Author: GayathriMurali <[email protected]>
Date: 2016-02-18T22:47:56Z
SPARK-12729. PhantomReference to replace finalize in python
broadcast.Redesigned the code to keep track of the creation and closing of the
phantom reference thread.Fixed null pointer exceptions
----
---
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]