RFR: 8287580: (se) CancelledKeyException during channel registration [v3]
Brian Burkhalter
bpb at openjdk.java.net
Fri Jun 3 16:06:31 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.
> [...]
> at java.base/java.nio.channels.SelectableChannel.register(SelectableChannel.java:260) at CancelDuringRegister.main(CancelDuringRegister.java:21)
I see the same (linux-aarch64, windows-x64):
----------System.err:(14/895)----------
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:51)```
-------------
PR: https://git.openjdk.java.net/jdk/pull/8978
More information about the nio-dev
mailing list