RFR: 8308545: java/net/httpclient/ShutdownNow.java fails with "stream 1 cancelled"
Jaikiran Pai
jpai at openjdk.org
Tue May 23 06:23:48 UTC 2023
On Mon, 22 May 2023 12:52:49 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> 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.
The change looks OK to me.
-------------
Marked as reviewed by jpai (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/14081#pullrequestreview-1438673832
More information about the net-dev
mailing list