RFR: 8287580: (se) CancelledKeyException during channel registration [v3]

Vyom Tewari vtewari at openjdk.java.net
Fri Jun 3 07:47:39 UTC 2022


On Thu, 2 Jun 2022 22:14:27 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Ignore `CancelledKeyException` during registration.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8287580: Revert change to AbstractSelectableChannel; reduce iterations in test

> 
It is  failing with different code path as below.

$ /home/worker/source/jdk/jdk/build/linux-x86_64-server-release/images/jdk/bin/java CancelDuringRegister
Exception in thread "main" java.nio.channels.CancelledKeyException
	at java.base/sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:75)
	at java.base/sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:104)
	at java.base/java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:233)
	at java.base/java.nio.channels.SelectableChannel.register(SelectableChannel.java:260)
	at CancelDuringRegister.main(CancelDuringRegister.java:21)

-------------

PR: https://git.openjdk.java.net/jdk/pull/8978


More information about the nio-dev mailing list