Github user vanzin commented on the pull request:

    https://github.com/apache/spark/pull/3705#issuecomment-67907847
  
    > so I think all accesses to that field will be serialized by Akka.
    
    Hmm, I'm not so sure. From the page you linked:
    
    > processing of one message happens before processing of the next message 
by the same actor.
    
    I read that sentence as: "messages from the same sender are processed in 
order", not "each receiver will only process one message at a time". 
`Worker.receiveWithLogging` handles messages from both `Master` and `Executor`, 
and both could cause `appDirectories` to be modified.
    
    Anyway, in these cases I tend to err on the side of safety; the extra 
synchronization here shouldn't cause any performance issues.


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