Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-4030

`destroy` method in Broadcast should be public

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.0, 1.2.0
    • 1.2.0
    • Block Manager, Spark Core
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              shivaram Shivaram Venkataraman
              shivaram Shivaram Venkataraman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: