Github user mridulm commented on the pull request:

    https://github.com/apache/spark/pull/2078#issuecomment-53154886
  
    I am not on mac - and have seen this on solaris and linux (not in ctx of 
spark); so the issue is not mac specific unfortunately (though it might also be 
on mac !).
    
    Btw, we cannot assume that channels are readable/writable when they are in 
selector loop - it also includes channels which we have registered to connect, 
might not be connectable (remote host/rack gone, dns issues, etc).
    Simple example where it fails : connect socket, and before connect 
completes, try to get remote address - it will return null. This specific 
example is reasonably beneign, we dont get NPE - just garbage in logs. (which 
is also the reason why we should always log the selection key directly)


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