RFR: 8269657: Test Loopback.java failed: Unexpected message [v8]

Daniel Fuchs dfuchs at openjdk.org
Fri Jun 28 09:06:27 UTC 2024


On Fri, 28 Jun 2024 08:51:35 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.
>
> SendaoYan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   delete bud id 8332535

Marked as reviewed by dfuchs (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/19314#pullrequestreview-2147433925


More information about the nio-dev mailing list