Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-19112

ConcurrentModificationException during health checks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 31.0.1.Final
    • MP Health
    • None
    • ---
    • ---

      We sometimes see a ConcurrentModificationException during health checks in wildfly/smallrye, possibly during startup/shutdown/restart when checks are beind added or removed.

      2024-03-11T04:22:15+01:00 ERROR [io.undertow.request] (management I/O-1) UT005071: Undertow request failed HttpServerExchange{ GET /health/ready}: java.util.ConcurrentModificationException
          at java.base/java.util.HashMap$HashIterator.nextNode(Unknown Source)
          at java.base/java.util.HashMap$EntryIterator.next(Unknown Source)
          at java.base/java.util.HashMap$EntryIterator.next(Unknown Source)
          at org.wildfly.extension.microprofile.health-smallrye@31.0.1.Final//org.wildfly.extension.microprofile.health.MicroProfileHealthReporter.processChecks(MicroProfileHealthReporter.java:163)
          at org.wildfly.extension.microprofile.health-smallrye@31.0.1.Final//org.wildfly.extension.microprofile.health.MicroProfileHealthReporter.getHealth(MicroProfileHealthReporter.java:143)
          at org.wildfly.extension.microprofile.health-smallrye@31.0.1.Final//org.wildfly.extension.microprofile.health.MicroProfileHealthReporter.getHealth(MicroProfileHealthReporter.java:133)
          at org.wildfly.extension.microprofile.health-smallrye@31.0.1.Final//org.wildfly.extension.microprofile.health.MicroProfileHealthReporter.getReadiness(MicroProfileHealthReporter.java:114)
          at org.wildfly.extension.microprofile.health-smallrye@31.0.1.Final//org.wildfly.extension.microprofile.health.MicroProfileHealthContextService$HealthCheckHandler.handleRequest(MicroProfileHealthContextService.java:80)
          at org.wildfly.extension.health@31.0.1.Final//org.wildfly.extension.health.HealthContextService$HealthCheckHandler.handleRequest(HealthContextService.java:108)
          at org.jboss.as.domain-http-interface@23.0.3.Final//org.jboss.as.domain.http.server.security.RealmReadinessHandler.handleRequest(RealmReadinessHandler.java:34)
          at org.jboss.as.domain-http-interface@23.0.3.Final//org.jboss.as.domain.http.server.security.ServerErrorReadinessHandler.handleRequest(ServerErrorReadinessHandler.java:22)
          at io.undertow.core@2.3.12.Final//io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:104)
          at io.undert
      2024-03-11T04:22:15+01:00 ow.core@2.3.12.Final//io.undertow.server.handlers.ChannelUpgradeHandler.handleRequest(ChannelUpgradeHandler.java:212)
          at io.undertow.core@2.3.12.Final//io.undertow.server.handlers.cache.CacheHandler.handleRequest(CacheHandler.java:92)
          at io.undertow.core@2.3.12.Final//io.undertow.server.handlers.error.SimpleErrorPageHandler.handleRequest(SimpleErrorPageHandler.java:78)
          at io.undertow.core@2.3.12.Final//io.undertow.server.handlers.CanonicalPathHandler.handleRequest(CanonicalPathHandler.java:49)
          at org.jboss.as.domain-http-interface@23.0.3.Final//org.jboss.as.domain.http.server.ManagementHttpRequestHandler.handleRequest(ManagementHttpRequestHandler.java:40)
          at org.jboss.as.domain-http-interface@23.0.3.Final//org.jboss.as.domain.http.server.cors.CorsHttpHandler.handleRequest(CorsHttpHandler.java:60)
          at org.jboss.as.domain-http-interface@23.0.3.Final//org.jboss.as.domain.http.server.ManagementHttpServer$UpgradeFixHandler.handleRequest(ManagementHttpServer.java:608)
          at io.undertow.core@2.3.12.Final//io.undertow.server.Connectors.executeRootHandler(Connectors.java:393)
          at io.undertow.core@2.3.12.Final//io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:265)
          at io.undertow.core@2.3.12.Final//io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136)
          at io.undertow.core@2.3.12.Final//io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:162)
          at io.undertow.core@2.3.12.Final//io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:100)
          at io.undertow.core@2.3.12.Final//io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:57)
          at org.jboss.xnio@3.8.13.Final//org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
          at org.jboss.xnio@3.8.13.Final//org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:291)
          at org.jboss.xnio
      2024-03-11T04:22:15+01:00 @3.8.13.Final//org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:286)
          at org.jboss.xnio@3.8.13.Final//org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
          at org.jboss.xnio.nio@3.8.13.Final//org.xnio.nio.QueuedNioTcpServer2.acceptTask(QueuedNioTcpServer2.java:178)
          at org.jboss.xnio.nio@3.8.13.Final//org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:624)
          at org.jboss.xnio.nio@3.8.13.Final//org.xnio.nio.WorkerThread.run(WorkerThread.java:491)
      

              jmesnil1@redhat.com Jeff Mesnil
              sven.haster Sven Haster (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: