Nothing to do with Remoting really.
Saw something like this in 2.46.1 with up-to-date plugins after running thousands of builds of a job discarding 50 old builds:
echo 'OK'
build job: JOB_NAME, wait: false
After /exit and restarting, there were a bunch of running builds, all hung. When trying to manually interrupt one, get
…org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$6 onFailure
WARNING: Failed to interrupt steps in Owner[p/9569:p #9569]
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:655)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$4.onSuccess(CpsFlowExecution.java:651)
at org.jenkinsci.plugins.workflow.support.concurrent.Futures$1.run(Futures.java:150)
at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253)
at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149)
at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:105)
at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:155)
at org.jenkinsci.plugins.workflow.support.concurrent.Futures.addCallback(Futures.java:160)
at org.jenkinsci.plugins.workflow.support.concurrent.Futures.addCallback(Futures.java:90)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.runInCpsVmThread(CpsFlowExecution.java:651)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.interrupt(CpsFlowExecution.java:861)
at org.jenkinsci.plugins.workflow.job.WorkflowRun$2$1.run(WorkflowRun.java:276)
at …
The weird thing is the logs:
…
[Pipeline] End of Pipeline
Finished: SUCCESS
Resuming build at … after Jenkins restart
In other words, they should have been complete already (there was only ever supposed to be one build of this project running at a time), so why were they marked as in progress?
Not sure if it is reproducible.
Nothing to do with Remoting really.
Saw something like this in 2.46.1 with up-to-date plugins after running thousands of builds of a job discarding 50 old builds:
After /exit and restarting, there were a bunch of running builds, all hung. When trying to manually interrupt one, get
The weird thing is the logs:
In other words, they should have been complete already (there was only ever supposed to be one build of this project running at a time), so why were they marked as in progress?
Not sure if it is reproducible.