We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edf8a56 commit 6bb725eCopy full SHA for 6bb725e
core/src/main/scala/org/apache/spark/SparkContext.scala
@@ -847,6 +847,8 @@ class SparkContext(
847
partitions: Seq[Int],
848
allowLocal: Boolean,
849
resultHandler: (Int, U) => Unit) {
850
+ val rddPartitions = rdd.partitions.map(_.index)
851
+ partitions.foreach(p =>require(rddPartitions.contains(p), "partition index out of range: " +p))
852
val callSite = getCallSite
853
val cleanedFunc = clean(func)
854
logInfo("Starting job: " + callSite)
0 commit comments