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

BroadCast can still work after sc had been stopped.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.1
    • None
    • Spark Core
    • None

    Description

      Code as follow:

      val sc1 = new SparkContext
      val sc2 = new SparkContext
      sc1.stop
      sc1.broadcast(1)
      

      It can work well, because sc1.broadcast will reuse the BlockManager in sc2.
      To fix it, throw a sparkException when broadCastManager had stopped.

      Attachments

        Issue Links

          Activity

            People

              joshrosen Josh Rosen
              carlmartin carlmartin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: