Skip to content

Commit f346f71

Browse files
committed
Addressed Patrick's comments.
1 parent fee0c5d commit f346f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/SparkContext.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ class SparkContext(config: SparkConf) extends Logging {
718718
minPartitions: Int = defaultMinPartitions
719719
): RDD[T] = {
720720
sequenceFile(path, classOf[NullWritable], classOf[BytesWritable], minPartitions)
721-
.flatMap(x => Utils.deserialize[Array[T]](x._2.getBytes, Thread.currentThread.getContextClassLoader))
721+
.flatMap(x => Utils.deserialize[Array[T]](x._2.getBytes, Utils.getContextOrSparkClassLoader))
722722
}
723723

724724
protected[spark] def checkpointFile[T: ClassTag](

0 commit comments

Comments
 (0)