Github user sarutak commented on the pull request:

    https://github.com/apache/spark/pull/2078#issuecomment-53151994
  
    Thanks @mridulm .
    The answer I want is why selector.select throws CancelledKeyException even 
through JavaDoc doesn't say select() throws the exception.
    
    Before, there was a bug that Selector#select throws CancelledKeyException 
but it's already resolved.
    You can check that here 
(http://www.oracle.com/technetwork/java/javase/releasenotes-138306.html  , Bug 
ID is 4729342)
    
    If you are worried about there is still bug, we should leave comment why 
enclosing selector.select by try block or log it may be JDK bug when throwing 
CancelledKeyException from selector.select.


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