spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shivaram Venkataraman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-4030) `destroy` method in Broadcast should be public
Date Tue, 21 Oct 2014 05:13:34 GMT
Shivaram Venkataraman created SPARK-4030:
--------------------------------------------

             Summary: `destroy` method in Broadcast should be public
                 Key: SPARK-4030
                 URL: https://issues.apache.org/jira/browse/SPARK-4030
             Project: Spark
          Issue Type: Bug
          Components: Block Manager, Spark Core
    Affects Versions: 1.1.0, 1.2.0
            Reporter: Shivaram Venkataraman


The destroy method in Broadcast.scala [https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/broadcast/Broadcast.scala#L91]
is right now marked as private[spark]

This prevents long-running applications from cleaning up memory used by broadcast variables
on the driver.  Also as broadcast variables are always created with persistence MEMORY_DISK,
this slows down jobs when old broadcast variables are flushed to disk. 

Making `destroy` public can help applications control the lifetime.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message