Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60850

Jenkins log flooded with SSE gateway plugins related warnings

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

      Jenkins log is flooded with below warnings. Can you please help to fix the issue.  Please let me know if any additional information is needed from my end.

      Jan 23, 2020 7:37:19 PM SEVERE org.jenkinsci.plugins.ssegateway.sse.EventDispatcher dispatchReload
      Unable to send reload event to client. java.lang.IllegalStateException: The request associated with the AsyncContext has already completed processing. at org.apache.catalina.core.AsyncContextImpl.check(AsyncContextImpl.java:509) at org.apache.catalina.core.AsyncContextImpl.getResponse(AsyncContextImpl.java:227) at org.jenkinsci.plugins.ssegateway.sse.AsynchEventDispatcher.getResponse(AsynchEventDispatcher.java:104) at org.jenkinsci.plugins.ssegateway.sse.EventDispatcher.dispatchEvent(EventDispatcher.java:170) at org.jenkinsci.plugins.ssegateway.sse.EventDispatcher.dispatchReload(EventDispatcher.java:337) at org.jenkinsci.plugins.ssegateway.sse.EventDispatcher.processRetries(EventDispatcher.java:394) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

        Attachments

          Activity

          ganeshsrf Ganesh Saraf created issue -
          ganeshsrf Ganesh Saraf made changes -
          Field Original Value New Value
          Description Hi,

          Jenkins log is flooded with below warnings. Can you please help to fix the issue.  PLease let me know if any additional information is needed from my end.
          Jan 23, 2020 7:37:19 PM SEVERE org.jenkinsci.plugins.ssegateway.sse.EventDispatcher dispatchReload
          Unable to send reload event to client. java.lang.IllegalStateException: The request associated with the AsyncContext has already completed processing. at org.apache.catalina.core.AsyncContextImpl.check(AsyncContextImpl.java:509) at org.apache.catalina.core.AsyncContextImpl.getResponse(AsyncContextImpl.java:227) at org.jenkinsci.plugins.ssegateway.sse.AsynchEventDispatcher.getResponse(AsynchEventDispatcher.java:104) at org.jenkinsci.plugins.ssegateway.sse.EventDispatcher.dispatchEvent(EventDispatcher.java:170) at org.jenkinsci.plugins.ssegateway.sse.EventDispatcher.dispatchReload(EventDispatcher.java:337) at org.jenkinsci.plugins.ssegateway.sse.EventDispatcher.processRetries(EventDispatcher.java:394) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
          Hi,

          Jenkins log is flooded with below warnings. Can you please help to fix the issue.  Please let me know if any additional information is needed from my end.


           Jan 23, 2020 7:37:19 PM SEVERE org.jenkinsci.plugins.ssegateway.sse.EventDispatcher dispatchReload
           Unable to send reload event to client. java.lang.IllegalStateException: The request associated with the AsyncContext has already completed processing. at org.apache.catalina.core.AsyncContextImpl.check(AsyncContextImpl.java:509) at org.apache.catalina.core.AsyncContextImpl.getResponse(AsyncContextImpl.java:227) at org.jenkinsci.plugins.ssegateway.sse.AsynchEventDispatcher.getResponse(AsynchEventDispatcher.java:104) at org.jenkinsci.plugins.ssegateway.sse.EventDispatcher.dispatchEvent(EventDispatcher.java:170) at org.jenkinsci.plugins.ssegateway.sse.EventDispatcher.dispatchReload(EventDispatcher.java:337) at org.jenkinsci.plugins.ssegateway.sse.EventDispatcher.processRetries(EventDispatcher.java:394) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
          Hide
          stoiky Mihai Stoichitescu added a comment -

          Happens to me too after updating Jenkins to 2.190.1 and SSE is at 1.21.

          There are thousands of records generated daily.

          Show
          stoiky Mihai Stoichitescu added a comment - Happens to me too after updating Jenkins to 2.190.1 and SSE is at  1.21 . There are thousands of records generated daily.
          Hide
          dnusbaum Devin Nusbaum added a comment -

          Is anyone seeing this using the Jetty servlet container embedded in Jenkins, or does it only occur when running Jenkins on Tomcat?

          Show
          dnusbaum Devin Nusbaum added a comment - Is anyone seeing this using the Jetty servlet container embedded in Jenkins, or does it only occur when running Jenkins on Tomcat?
          Hide
          stoiky Mihai Stoichitescu added a comment -

          Can't test with Jetty, but for us yes it's occurring on Tomcat 9.0.14 Devin Nusbaum

          Show
          stoiky Mihai Stoichitescu added a comment - Can't test with Jetty, but for us yes it's occurring on Tomcat 9.0.14 Devin Nusbaum
          olamy Olivier Lamy made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          olamy Olivier Lamy made changes -
          Priority Minor [ 4 ] Major [ 3 ]
          Hide
          olamy Olivier Lamy added a comment -

          https://github.com/jenkinsci/sse-gateway-plugin/pull/59

          Mihai Stoichitescu Ganesh Saraf  FYI if you can test with the PR it would be great.

          To mitigate this issue you can use those properties (even smaller values if you still have problems)

          -Dorg.jenkinsci.plugins.ssegateway.sse.EventDispatcher.RETRY_QUEUE_EVENT_LIFETIME=60000

          -Dorg.jenkinsci.plugins.ssegateway.sse.EventDispatcher.TIMEOUT_DISPATCHERFAIL=900000

           

          To reproduce just look at a pipeline generating a lot of events via BlueOcean and close browsers/tabs abruptly

           

          Show
          olamy Olivier Lamy added a comment - https://github.com/jenkinsci/sse-gateway-plugin/pull/59 Mihai Stoichitescu Ganesh Saraf   FYI if you can test with the PR it would be great. To mitigate this issue you can use those properties (even smaller values if you still have problems) -Dorg.jenkinsci.plugins.ssegateway.sse.EventDispatcher.RETRY_QUEUE_EVENT_LIFETIME=60000 -Dorg.jenkinsci.plugins.ssegateway.sse.EventDispatcher.TIMEOUT_DISPATCHERFAIL=900000   To reproduce just look at a pipeline generating a lot of events via BlueOcean and close browsers/tabs abruptly  
          Hide
          olamy Olivier Lamy added a comment -

          see-gateway plugin 1.24 released

          Show
          olamy Olivier Lamy added a comment - see-gateway plugin 1.24 released
          olamy Olivier Lamy made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          Hide
          stoiky Mihai Stoichitescu added a comment -

          Thank you Olivier Lamy

          Show
          stoiky Mihai Stoichitescu added a comment - Thank you Olivier Lamy
          Hide
          ganeshsrf Ganesh Saraf added a comment -

          Thanks a lot Olivier Lamy . I shall upgrade see-gateway plugin to version 1.24 and get back if there are any issues.

          Show
          ganeshsrf Ganesh Saraf added a comment - Thanks a lot Olivier Lamy . I shall upgrade see-gateway plugin to version 1.24 and get back if there are any issues.

            People

            Assignee:
            olamy Olivier Lamy
            Reporter:
            ganeshsrf Ganesh Saraf
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: