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

SendaoYan syan at openjdk.org
Fri Jun 28 08:51:35 UTC 2024


> 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

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/19314/files
  - new: https://git.openjdk.org/jdk/pull/19314/files/ad8e1de0..fb5bdc2b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=19314&range=07
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=19314&range=06-07

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/19314.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19314/head:pull/19314

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


More information about the nio-dev mailing list