RFR: 8332535: Mark java/nio/channels/DatagramChannel/Loopback.java as intermittent [v4]
Daniel Fuchs
dfuchs at openjdk.org
Wed Jun 26 14:42:13 UTC 2024
On Wed, 26 Jun 2024 12:40:41 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 this test intermittent, and print more messages to investigate the intermittent failure. Only change the testcase, no risk.
>
> SendaoYan has updated the pull request incrementally with one additional commit since the last revision:
>
> compare ByteBuffer with mismatch()
test/jdk/java/nio/channels/DatagramChannel/Loopback.java line 166:
> 164: System.out.println("src: " + src + "not equal to dst: " + dst);
> 165: dst.clear();
> 166: continue;
So if this happens we will go back waiting for 3 more seconds. We're not supposed to receive stray datagrams here, so I assume it might be OK to respin with 3 full seconds as this shouldn't happen too often...
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19314#discussion_r1655002551
More information about the nio-dev
mailing list