Skip to content

Commit

Permalink
Fix in Spark for the Concurrent thread modification issue (SPARK-1097…
Browse files Browse the repository at this point in the history
…, HADOOP-10456)
  • Loading branch information
nishkamravi2 committed Jun 3, 2014
1 parent 681b36f commit 5108700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/rdd/HadoopRDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class HadoopRDD[K, V](
private val createTime = new Date()

// Returns a JobConf that will be used on slaves to obtain input splits for Hadoop reads.
protected def getJobConf(): JobConf = {
protected def getJobConf(): JobConf = synchronized {
val conf: Configuration = broadcastedConf.value.value
if (conf.isInstanceOf[JobConf]) {
// A user-broadcasted JobConf was provided to the HadoopRDD, so always use it.
Expand Down

0 comments on commit 5108700

Please sign in to comment.