RFR: 8335771: Improve stability of java/nio/channels/DatagramChannel tests [v5]

Alan Bateman alanb at openjdk.org
Fri Aug 16 06:52:49 UTC 2024


On Thu, 15 Aug 2024 14:58:04 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Several `java/nio/channels/DatagramChannel` tests fail intermittently. Though it seems difficult to fix all intermittent failures due to the nature of what some of these attempt to test, the stability can still be improved.
>> 
>> The most common source of intermittent failures are:
>> 
>>  - not receiving a datagram due to port conflict or interference of concurrent running tests
>>  - failure to disconnect due to interference of concurrent running tests
>>  - failure due to reception of unexpected stray datagrams
>> 
>> Avoiding to bind on the wildcard address, filtering unexpected datagram, and some retrying can aleviate some of the issues and greatly reduce the frequency of intermittent failures.
>
> Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Integrated more review feedback

Marked as reviewed by alanb (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/20050#pullrequestreview-2242039214


More information about the nio-dev mailing list