Integrated: 8269657: Test java/nio/channels/DatagramChannel/Loopback.java failed: Unexpected message

SendaoYan syan at openjdk.org
Fri Jun 28 09:41:26 UTC 2024


On Mon, 20 May 2024 15:39:52 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
>   The test `test/jdk/java/nio/channels/DatagramChannel/Loopback.java` intermittent fail, the failure probability is about 2/1000. 
> This PR mark add some entropy(System.nanoTime) to the message content, and if the payloads doesn't match then ignore it, because payloads probably receiving some stray packet sent by another process. Only if the port unmatch and the content match we consider it a failure.
> The change has been verified locally, I have runed the test after the this patch 20k times and all passed. Only change the testcase, no risk.

This pull request has now been integrated.

Changeset: c798316b
Author:    SendaoYan <syan at openjdk.org>
Committer: Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c798316bc4cb33fd902f926030d8a0b6870d661a
Stats:     11 lines in 1 file changed: 8 ins; 0 del; 3 mod

8269657: Test java/nio/channels/DatagramChannel/Loopback.java failed: Unexpected message

Reviewed-by: dfuchs

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

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


More information about the nio-dev mailing list