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

Vyom Tewari vtewari at openjdk.java.net
Fri Jun 3 07:04:38 UTC 2022


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

>> Commit 925336449bfda90791b7e289d0008da4a9bc87a6 changes the test to use a single `SocketChannel`.
>
> Commit 98bcd22e8ba60c7499fab332f943616bb88b03f5 reduces the number of `SocketChannels` created per invocation of `test()` to 5. With this change, a run of 5 test repeats in the test harness had these failure rates without the source change applied:
> 
> 5/5 failures linux-aarch64
> 4/5 failures linux-x64
> 4/5 failures macosx-x64
> 3/4 failures windows-x64
> 
> This looks sufficient to detect a failure but with a much lower number of open sockets.

When i ran you test code(without the fix) on my mac , i am getting sometime NPE as below. Please have look, your test may fail intermittently in future with below NPE.

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

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


More information about the nio-dev mailing list