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

Test java/net/httpclient/CancelRequestTest.java failed: WARNING: tracker for HttpClientImpl(42) has outstanding operations

    XMLWordPrintable

Details

    • b16
    • Verified

    Description

      step [0] found in HttpClientImpl(41) in 245 ms
      Sending: https://127.0.0.1:52305/https1/x/new/interruptThread/post/req=1
      [22 s, 73 ms, 871125 ns] Interrupting main from: Thread[#81,pool-1-thread-7,5,MainThreadGroup] (https://127.0.0.1:52305/https1/x/new/interruptThread/post/req=1)
      https://127.0.0.1:52305/https1/x/new/interruptThread/post/req=1: got result or exception
      https://127.0.0.1:52305/https1/x/new/interruptThread/post/req=1: Got expected exception: java.lang.InterruptedException
      next iteration
      Waiting for HTTP operations to terminate...
      gracedelay: 1000 ms, iterations: 100, wait/iteration: 10ms
      WARNING: tracker for HttpClientImpl(42) has outstanding operations:
      Pending HTTP Requests: 1
      Pending HTTP/1.1 operations: 1
      Pending HTTP/2 streams: 0
      Pending WebSocket operations: 0
      Pending TCP connections: 0
      Pending Subscribers: 0
      Total pending operations: 1
      Facade referenced: true
      Selector alive: true
      AssertionError: Found some subscribers for testPostInterrupt(https://127.0.0.1:52305/https1/x/new/interruptThread/post/req=1)
      step [1] in HttpClientImpl(42) after 100 iterations and 7274 ms, waited 1000 ms
      test CancelRequestTest.testPostInterrupt("https://127.0.0.1:52305/https1/x/new/interruptThread", false): failure
      java.lang.AssertionError: WARNING: tracker for HttpClientImpl(42) has outstanding operations:
      Pending HTTP Requests: 1
      Pending HTTP/1.1 operations: 1
      Pending HTTP/2 streams: 0
      Pending WebSocket operations: 0
      Pending TCP connections: 0
      Pending Subscribers: 0
      Total pending operations: 1
      Facade referenced: true
      Selector alive: true
      at ReferenceTracker.check(ReferenceTracker.java:251)
      at CancelRequestTest.testPostInterrupt(CancelRequestTest.java:579)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
      at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
      at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
      at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
      at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
      at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
      at org.testng.TestRunner.privateRun(TestRunner.java:764)
      at org.testng.TestRunner.run(TestRunner.java:585)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
      at org.testng.SuiteRunner.run(SuiteRunner.java:286)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
      at org.testng.TestNG.runSuites(TestNG.java:1069)
      at org.testng.TestNG.run(TestNG.java:1037)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:102)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1570)

      Attachments

        Issue Links

          Activity

            People

              dfuchs Daniel Fuchs
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: