Github user CodingCat commented on the pull request:

    https://github.com/apache/spark/pull/1313#issuecomment-50299464
  
    Ah, yes, you're right, working on this...
    
    the only issue is that PROCESS_LOCAL is also NODE_LOCAL and myLocalities is 
not updated upon the completion of each task.... so might not be easy to 
distinguish if there are some "only NODE_LOCAL" tasks worthing waiting for 3 
seconds when we call with NO_PREFS, 
    
    e.g. 
    
    case 1: T1 (PROCESS_LOCAL & NODE_LOCAL), T2 (PROCESS_LOCAL & NODE_LOCAL), 
T3(NO_PREFS)
    
    case 2: T1 (PROCESS_LOCAL& NODE_LOCAL), T2(PROCESS_LOCAL& NODE_LOCAL), 
T3(NODE_LOCAL), T4(NO_PREFS)
    
    in case 2, we might need to wait for delay duration when calling with 
NO_PREFS to prevent T4 being scheduled before T3....
    
    in case 1, we don't need to do that, since all NODE_LOCALS have actually 
been scheduled
    
    



---
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.
---

Reply via email to