Skip to content
Snippets Groups Projects
Commit 1013a014 authored by Mosharaf Chowdhury's avatar Mosharaf Chowdhury
Browse files

Made the root Broadcast object initilization method 'synchronized'.

parent a69638d9
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ extends Logging {
private var broadcastFactory: BroadcastFactory = null
// Called by SparkContext or Executor before using Broadcast
def initialize (isMaster: Boolean): Unit = {
def initialize (isMaster: Boolean): Unit = synchronized {
if (!initialized) {
val broadcastFactoryClass = System.getProperty("spark.broadcast.Factory",
"spark.BitTorrentBroadcastFactory")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment