File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
core/src/main/scala/org/apache/spark Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -847,8 +847,8 @@ class SparkContext(
847847 partitions : Seq [Int ],
848848 allowLocal : Boolean ,
849849 resultHandler : (Int , U ) => Unit ) {
850- require( partitions.toSet.diff(rdd.partitions.map(_.index).toSet).isEmpty,
851- " partition index out of range " )
850+ val outIndex = partitions.toSet.diff(rdd.partitions.map(_.index).toSet)
851+ require(outIndex.isEmpty, " Partition index out of bounds: " + outIndex.mkString( " , " ) )
852852 val callSite = getCallSite
853853 val cleanedFunc = clean(func)
854854 logInfo(" Starting job: " + callSite)
@@ -952,8 +952,8 @@ class SparkContext(
952952 resultHandler : (Int , U ) => Unit ,
953953 resultFunc : => R ): SimpleFutureAction [R ] =
954954 {
955- require( partitions.toSet.diff(rdd.partitions.map(_.index).toSet).isEmpty,
956- " partition index out of range " )
955+ val outIndex = partitions.toSet.diff(rdd.partitions.map(_.index).toSet)
956+ require(outIndex.isEmpty, " Partition index out of bounds: " + outIndex.mkString( " , " ) )
957957 val cleanF = clean(processPartition)
958958 val callSite = getCallSite
959959 val waiter = dagScheduler.submitJob(
You can’t perform that action at this time.
0 commit comments