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

RejectedExecutionException at SingleLaneExecutorService when loading CpsFlowExecution after restart

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • workflow-cps-plugin

      One one of the Jenkins instances I see the following behavior after the Jenkins restart:

      2017-04-05 10:56:30.569+0000 [id=72]	WARNING	o.j.p.w.f.FlowExecutionList$ItemListenerImpl$1#onFailure: Failed to load CpsFlowExecution[Owner[ *SECRET* #15]]java.util.concurrent.RejectedExecutionException
      	at hudson.remoting.SingleLaneExecutorService.execute(SingleLaneExecutorService.java:100)
      	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
      	at com.google.common.util.concurrent.ForwardingExecutorService.submit(ForwardingExecutorService.java:110)
      	at jenkins.util.InterceptingExecutorService.submit(InterceptingExecutorService.java:49)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$4.onSuccess(CpsFlowExecution.java:648)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$4.onSuccess(CpsFlowExecution.java:644)
      	at org.jenkinsci.plugins.workflow.support.concurrent.Futures$1.run(Futures.java:150)
      

      According to the remoting Code-base, it happens when the Executor Service is shutting down due to whatever reason. I am not sure why it could be shutting down in Pipeline CPS Plugin during the startup, but this issue should be gracefully handled.

      Diagnostics PR on the remoting side: https://github.com/jenkinsci/remoting/pull/156.

          [JENKINS-43413] RejectedExecutionException at SingleLaneExecutorService when loading CpsFlowExecution after restart

          Oleg Nenashev created issue -
          Jesse Glick made changes -
          Component/s Original: pipeline [ 21692 ]
          Labels Original: pipeline remoting
          CloudBees Inc. made changes -
          Remote Link New: This issue links to "CloudBees Internal CD-28 (Web Link)" [ 19039 ]
          Sam Van Oort made changes -
          Labels New: maybe-fixed-by-durability-megafix regression
          Sam Van Oort made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Jesse Glick made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

            Unassigned Unassigned
            oleg_nenashev Oleg Nenashev
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: