RFR: 8293696: java/nio/channels/DatagramChannel/SelectWhenRefused.java fails with "Unexpected wakeup" [v2]

Daniel Fuchs dfuchs at openjdk.org
Thu Oct 27 18:22:35 UTC 2022


On Thu, 27 Oct 2022 18:02:16 GMT, Mark Sheppard <msheppar at openjdk.org> wrote:

>> Darragh Clarke has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   added loop to retry in event of interruption from other tests
>
> test/jdk/java/nio/channels/DatagramChannel/SelectWhenRefused.java line 58:
> 
>> 56:             dc.register(sel, SelectionKey.OP_READ);
>> 57: 
>> 58:             for (;;) {
> 
> treat each test scenario individually wrt retry and set an upper bound on the number of potential retries ?

Having an upper bound - e.g. 3 and failing if we reach the upper bound would be prudent yes :-)

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

PR: https://git.openjdk.org/jdk/pull/10851


More information about the nio-dev mailing list