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

BroadCast can still work after sc had been stopped.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: Spark Core
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: