RFR: 8269657: Test java/nio/channels/DatagramChannel/Loopback.java failed: Unexpected message [v8]

duke duke at openjdk.org
Fri Jun 28 09:18:20 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

@sendaoYan 
Your change (at version fb5bdc2b22a6c9b61f94c978873a21d4f8590452) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk/pull/19314#issuecomment-2196476620


More information about the nio-dev mailing list