RFR: 8308545: java/net/httpclient/ShutdownNow.java fails with "stream 1 cancelled"

Daniel Fuchs dfuchs at openjdk.org
Mon May 22 13:01:19 UTC 2023


The test `test/jdk/java/net/httpclient/ShutdownNow.java` has been observed failing intermittently (though rarely) with an assertion error: `java.lang.AssertionError: 0: Unexpected exception: java.io.IOException: Stream 1 cancelled` caused by  


java.io.IOException: Stream 1 cancelled
at java.net.http/jdk.internal.net.http.Stream.cancel(Stream.java:1285) 


Given the nature of the test - which interrupts / cancel all operations asynchronously, then a "stream %d cancelled" exception should count as an acceptable result.

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

Commit messages:
 - 8308545

Changes: https://git.openjdk.org/jdk/pull/14081/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14081&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8308545
  Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/14081.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14081/head:pull/14081

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


More information about the net-dev mailing list