Github user davies commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2648#discussion_r18544040
  
    --- Diff: core/src/main/scala/org/apache/spark/rdd/AsyncRDDActions.scala ---
    @@ -78,16 +78,17 @@ class AsyncRDDActions[T: ClassTag](self: RDD[T]) 
extends Serializable with Loggi
             // greater than totalParts because we actually cap it at 
totalParts in runJob.
             var numPartsToTry = 1
             if (partsScanned > 0) {
    -          // If we didn't find any rows after the first iteration, just 
try all partitions next.
    +          // If we didn't find any rows after the previous iteration, 
quadruple and retry.
               // Otherwise, interpolate the number of partitions we need to 
try, but overestimate it
    -          // by 50%.
    +          // by 50%. We also cap the estimation in the end.
               if (results.size == 0) {
    -            numPartsToTry = totalParts - 1
    +            numPartsToTry = totalParts * 4
    --- End diff --
    
    totalParts should be partsScanned


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to