Skip to content

Commit 4391d3b

Browse files
committed
typo fix.
1 parent 692f4e6 commit 4391d3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/rdd/AsyncRDDActions.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ class AsyncRDDActions[T: ClassTag](self: RDD[T]) extends Serializable with Loggi
8282
// Otherwise, interpolate the number of partitions we need to try, but overestimate it
8383
// by 50%. We also cap the estimation in the end.
8484
if (results.size == 0) {
85-
numPartsToTry = totalParts * 4
85+
numPartsToTry = partsScanned * 4
8686
} else {
8787
// the left side of max is >=1 whenever partsScanned >= 2
8888
numPartsToTry = ((1.5 * num * partsScanned / results.size).toInt - partsScanned) max 1
89-
numPartsToTry = numPartsToTry min (totalParts * 4)
89+
numPartsToTry = numPartsToTry min (partsScanned * 4)
9090
}
9191
}
9292

0 commit comments

Comments
 (0)