Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8254802

ThrowingPushPromisesAsStringCustom.java fails in "try throwing in GET_BODY"

XMLWordPrintable

    • b28
    • x86_64
    • linux

        The following test failed in the JDK16 CI:

        java/net/httpclient/ThrowingPushPromisesAsStringCustom.java

        Here's a snippet from the log file:

        try throwing in GET_BODY
        Http2TestContext::handle Http2TestExchangeImpl: Http2TestExchangeImpl@37e2500c
        HTTP_FixedLengthHandler received request to http://localhost:53553/http2/fixed/x
        TestServer: [1 s, 929 ms, 286967 ns] Pushing promise: http://localhost:53553/http2/fixed/x/before/promise-1
        TestServer: [1 s, 930 ms, 93608 ns] Pushing promise: http://localhost:53553/http2/fixed/x/after/promise-2
        TestServer: [1 s, 930 ms, 728198 ns] Pushing promise: http://localhost:53553/http2/fixed/x/after/promise-3
        WARNING: exception caught in Http2Chain::doFilter java.io.IOException: stream closed
        java.io.IOException: stream closed
        at Queue.put(Queue.java:60)
        at BodyOutputStream.send(BodyOutputStream.java:108)
        at BodyOutputStream.write(BodyOutputStream.java:93)
        at AbstractThrowingPushPromises$HTTP_FixedLengthHandler.handle(AbstractThrowingPushPromises.java:772)
        at HttpServerAdapters$HttpChain$Http2Chain.doFilter(HttpServerAdapters.java:432)
        at HttpServerAdapters$HttpTestServer$Http2TestContext.handle(HttpServerAdapters.java:611)
        at HttpServerAdapters$HttpTestHandler.doHandle(HttpServerAdapters.java:349)
        at HttpServerAdapters$HttpTestHandler.lambda$toHttp2Handler$1(HttpServerAdapters.java:345)
        at Http2TestServerConnection.handleRequest(Http2TestServerConnection.java:682)
        at Http2TestServerConnection.lambda$createStream$3(Http2TestServerConnection.java:633)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)
        WARNING: exception caught in HttpTestHandler::handle java.io.IOException: stream closed
        java.io.IOException: stream closed
        at Queue.put(Queue.java:60)
        at BodyOutputStream.send(BodyOutputStream.java:108)
        at BodyOutputStream.write(BodyOutputStream.java:93)
        at AbstractThrowingPushPromises$HTTP_FixedLengthHandler.handle(AbstractThrowingPushPromises.java:772)
        at HttpServerAdapters$HttpChain$Http2Chain.doFilter(HttpServerAdapters.java:432)
        at HttpServerAdapters$HttpTestServer$Http2TestContext.handle(HttpServerAdapters.java:611)
        at HttpServerAdapters$HttpTestHandler.doHandle(HttpServerAdapters.java:349)
        at HttpServerAdapters$HttpTestHandler.lambda$toHttp2Handler$1(HttpServerAdapters.java:345)
        at Http2TestServerConnection.handleRequest(Http2TestServerConnection.java:682)
        at Http2TestServerConnection.lambda$createStream$3(Http2TestServerConnection.java:633)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)
        test ThrowingPushPromisesAsStringCustom.testThrowingAsString("http://localhost:53553/http2/fixed/x", true, AbstractThrowingPushPromises$UncheckedCustomExceptionThrower@394f8922): failure
        java.util.concurrent.CompletionException: java.io.EOFException: EOF reached while reading
        at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:331)
        at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:346)
        at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:870)
        at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
        at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
        at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2152)
        at java.net.http/jdk.internal.net.http.ResponseSubscribers.lambda$getBodyAsync$2(ResponseSubscribers.java:1147)
        at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
        at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
        at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
        at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2152)
        at java.net.http/jdk.internal.net.http.ResponseSubscribers$ByteArraySubscriber.onError(ResponseSubscribers.java:357)
        at java.net.http/jdk.internal.net.http.Stream.schedule(Stream.java:242)
        at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SynchronizedRestartableTask.run(SequentialScheduler.java:175)
        at java.net.http/jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask.run(SequentialScheduler.java:147)
        at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:198)
        at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:271)
        at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:224)
        at java.net.http/jdk.internal.net.http.Stream.cancelImpl(Stream.java:1238)
        at java.net.http/jdk.internal.net.http.Stream.connectionClosing(Stream.java:1214)
        at java.net.http/jdk.internal.net.http.Http2Connection.shutdown(Http2Connection.java:705)
        at java.net.http/jdk.internal.net.http.Http2Connection$Http2TubeSubscriber.processQueue(Http2Connection.java:1322)
        at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SynchronizedRestartableTask.run(SequentialScheduler.java:175)
        at java.net.http/jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask.run(SequentialScheduler.java:147)
        at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:198)
        at AbstractThrowingPushPromises$TestExecutor.lambda$execute$0(AbstractThrowingPushPromises.java:138)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)
        Caused by: java.io.EOFException: EOF reached while reading
        at java.net.http/jdk.internal.net.http.Http2Connection$Http2TubeSubscriber.onComplete(Http2Connection.java:1373)
        at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadSubscription.signalCompletion(SocketTube.java:632)
        at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.read(SocketTube.java:837)
        at java.net.http/jdk.internal.net.http.SocketTube$SocketFlowTask.run(SocketTube.java:175)
        at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:198)
        at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:271)
        at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:224)
        at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.signalReadable(SocketTube.java:766)
        at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent.signalEvent(SocketTube.java:949)
        at java.net.http/jdk.internal.net.http.SocketTube$SocketFlowEvent.handle(SocketTube.java:245)
        at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.handleEvent(HttpClientImpl.java:960)
        at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.lambda$run$3(HttpClientImpl.java:915)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.run(HttpClientImpl.java:915)
        config AbstractThrowingPushPromises.beforeMethod(org.testng.TestRunner@4928c4f6): failure
        java.lang.RuntimeException: some tests failed
        at AbstractThrowingPushPromises.beforeMethod(AbstractThrowingPushPromises.java:157)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
        at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510)
        at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:585)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
        at org.testng.TestRunner.privateRun(TestRunner.java:773)
        at org.testng.TestRunner.run(TestRunner.java:623)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
        at org.testng.SuiteRunner.run(SuiteRunner.java:259)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
        at org.testng.TestNG.run(TestNG.java:1018)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:832)
        test ThrowingPushPromisesAsStringCustom.testThrowingAsString("http://localhost:53553/http2/chunk/x", true, AbstractThrowingPushPromises$UncheckedCustomExceptionThrower@394f8922): skip
        config AbstractThrowingPushPromises.beforeMethod(): skip
        test ThrowingPushPromisesAsStringCustom.testThrowingAsString("https://localhost:59845/https2/fixed/x", true, AbstractThrowingPushPromises$UncheckedCustomExceptionThrower@394f8922): skip
        config AbstractThrowingPushPromises.beforeMethod(): skip
        test ThrowingPushPromisesAsStringCustom.testThrowingAsString("https://localhost:59845/https2/chunk/x", true, AbstractThrowingPushPromises$UncheckedCustomExceptionThrower@394f8922): skip
        config AbstractThrowingPushPromises.printFailedTests(): skip
        config AbstractThrowingPushPromises.teardown(): skip

        ===============================================
        java/net/httpclient/ThrowingPushPromisesAsStringCustom.java
        Total tests run: 4, Failures: 1, Skips: 3
        Configuration Failures: 1, Skips: 4
        ===============================================

        ----------System.err:(887/92435)----------

              dfuchs Daniel Fuchs
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: