liuzqt commented on code in PR #37661:
URL: https://github.com/apache/spark/pull/37661#discussion_r956410129


##########
core/src/main/scala/org/apache/spark/rdd/AsyncRDDActions.scala:
##########
@@ -84,18 +87,18 @@ class AsyncRDDActions[T: ClassTag](self: RDD[T]) extends 
Serializable with Loggi
       } else {
         // The number of partitions to try in this iteration. It is ok for 
this number to be
         // greater than totalParts because we actually cap it at totalParts in 
runJob.
-        var numPartsToTry = 1L
+        var numPartsToTry = 
Math.max(self.conf.get(RDD_LIMIT_INITIAL_NUM_PARTITIONS), 1)

Review Comment:
   nice idea, modified accordingly



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to