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

AssertionError in sun.net.httpserver.ServerImpl when connection is idle

XMLWordPrintable

    • b22
    • generic
    • generic

        ADDITIONAL SYSTEM INFORMATION :
        Debian 4.14.295 x86_64 GNU/Linux
        Adoptium OpenJDK 17.0.5+8

        A DESCRIPTION OF THE PROBLEM :
        Since upgrading from Adoptium 17.0.4+8 to 17.0.5+8, we started observing this AssertionError in our test environment which has assertions enabled.

        java.lang.AssertionError: State is not REQUEST (IDLE)
                at sun.net.httpserver.ServerImpl.requestCompleted(ServerImpl.java:967) ~[jdk.httpserver:?]
                at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:743) ~[jdk.httpserver:?]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
                at java.lang.Thread.run(Thread.java:833) [?:?]

        This happens pretty frequently since the upgrade, but we haven't been able to create a standalone reproduction script yet. I didn't see any other relevant information or logs or information related to the failure.

        I noticed a recent change in JDK-8286918 in ServerImpl where this assertion was raised, but haven't been able to identify any specific changes that could be responsible
        https://github.com/openjdk/jdk17u-dev/commit/ff5418eff8c07be96005ca0d8477436643cc14dd

        REGRESSION : Last worked in version 17

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Unable to reproduce intentionally yet


        FREQUENCY : often


              djelinski Daniel Jelinski
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: