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

java/net/httpclient/ManyRequests2.java fails intermittently on Linux

XMLWordPrintable

    • b23
    • generic
    • linux

        On Linux, especially on Linux ppc64le test machines (RHEL8.5, Ubuntu 22.04) we see intermittent failures of java/net/httpclient/ManyRequests2.java .
        Failure seems to be this :
        Oct 18, 2023 8:47:49 AM sun.net.httpserver.ServerImpl$Exchange run
        FINER: ServerImpl.Exchange (5)
        java.lang.AssertionError: State is not REQUEST (IDLE)
        at jdk.httpserver/sun.net.httpserver.ServerImpl.requestCompleted(ServerImpl.java:1001)
        at jdk.httpserver/sun.net.httpserver.FixedLengthInputStream.readImpl(FixedLengthInputStream.java:63)
        at jdk.httpserver/sun.net.httpserver.LeftOverInputStream.read(LeftOverInputStream.java:99)
        at java.base/java.io.InputStream.readNBytes(InputStream.java:412)
        at java.base/java.io.InputStream.readAllBytes(InputStream.java:349)
        at EchoHandler.handle(EchoHandler.java:48)
        at ManyRequests$TestEchoHandler.handle(ManyRequests.java:147)
        at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:98)
        at jdk.httpserver/sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82)
        at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:101)
        at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:871)
        at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:98)
        at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:845)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
        at java.base/java.lang.Thread.run(Thread.java:1570)

        Is the state IDLE maybe also valid under some circumstances ?
        Or should we mark the test "intermittent" ?

              djelinski Daniel Jelinski
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: