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

java/net/httpclient/SpecialHeadersTest.java failed once in AssertionError due to selector thread remaining alive

XMLWordPrintable

    • b26
    • Verified

      --- Starting
      Got IAE as expected
      Waiting for HTTP operations to terminate...
      PASSED: No outstanding operations or unreleased resources found in 108 clients
      test SpecialHeadersTest.testHomeMadeIllegalHeader("http://localhost:64765/http2", "host: all-lower-case", false): success
      config SpecialHeadersTest.beforeMethod(org.testng.TestRunner@12766580): success

      --- Starting
      Got IAE as expected
      WARNING: tracker for HttpClientImpl(110) has outstanding operations:
      Pending HTTP Requests: 0
      Pending HTTP/1.1 operations: 0
      Pending HTTP/2 streams: 0
      Pending WebSocket operations: 0
      Pending TCP connections: 0
      Pending Subscribers: 0
      Total pending operations: 0
      Facade referenced: false
      Selector alive: true
      Found 0 client still active, with 0 operations still pending out of 109 tracked clients.
      test SpecialHeadersTest.testHomeMadeIllegalHeader("http://localhost:64765/http2", "hoSt: mixed", false): failure
      java.lang.AssertionError: WARNING: tracker for HttpClientImpl(110) has outstanding operations:
      Pending HTTP Requests: 0
      Pending HTTP/1.1 operations: 0
      Pending HTTP/2 streams: 0
      Pending WebSocket operations: 0
      Pending TCP connections: 0
      Pending Subscribers: 0
      Total pending operations: 0
      Facade referenced: false
      Selector alive: true
      Found 0 client still active, with 0 operations still pending out of 109 tracked clients.
      at ReferenceTracker.check(ReferenceTracker.java:268)
      at ReferenceTracker.check(ReferenceTracker.java:112)
      at SpecialHeadersTest.testHomeMadeIllegalHeader(SpecialHeadersTest.java:437)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      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:1511)
      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:93)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:53)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1591)

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: