Integrated: 8308545: java/net/httpclient/ShutdownNow.java fails with "stream 1 cancelled"
    Daniel Fuchs 
    dfuchs at openjdk.org
       
    Tue May 23 15:18:47 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.
This pull request has now been integrated.
Changeset: 582ddeb2
Author:    Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/582ddeb2b24f77307b89befc8c643290e0ed1b11
Stats:     2 lines in 1 file changed: 2 ins; 0 del; 0 mod
8308545: java/net/httpclient/ShutdownNow.java fails with "stream 1 cancelled"
Reviewed-by: jpai
-------------
PR: https://git.openjdk.org/jdk/pull/14081
    
    
More information about the net-dev
mailing list