Integrated: 8335771: Improve stability of java/nio/channels/DatagramChannel tests

Daniel Fuchs dfuchs at openjdk.org
Mon Aug 19 13:50:54 UTC 2024


On Fri, 5 Jul 2024 10:50:56 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.

This pull request has now been integrated.

Changeset: 3ca359ad
Author:    Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3ca359ad224b07f283c99eb43bed02eb93ef2dc7
Stats:     385 lines in 11 files changed: 273 ins; 20 del; 92 mod

8335771: Improve stability of java/nio/channels/DatagramChannel tests

Reviewed-by: alanb

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

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


More information about the nio-dev mailing list