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

ExecutorStepExecution$RemovedNodeListener#cancelOwnerExecution: java.io.IOException: cannot find current thread

XMLWordPrintable

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

      During upgrade to Jenkins 2.452.2, combined with update of plugins, I can observe following exception in Jenkins logs:
       

      2024-06-20 11:42:18.146+0000 [id=814]	INFO	j.s.DefaultJnlpSlaveReceiver#channelClosed: Jetty (winstone)-814 for enforce-refactorator-6a1a5da6-2fef-4a93-8296-ccdda1da2c43-sntc6 terminated: java.nio.channels.ClosedChannelException
      2024-06-20 11:42:18.147+0000 [id=595]	WARNING	o.j.p.w.s.s.ExecutorStepExecution$RemovedNodeListener#cancelOwnerExecution
      java.io.IOException: cannot find current thread
      	at org.jenkinsci.plugins.workflow.cps.CpsStepContext.doGet(CpsStepContext.java:295)
      	at org.jenkinsci.plugins.workflow.support.DefaultStepContext.get(DefaultStepContext.java:75)
      	at org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$RemovedNodeListener.cancelOwnerExecution(ExecutorStepExecution.java:379)
      	at org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$RemovedNodeListener.onDeleted(ExecutorStepExecution.java:354)
      	at jenkins.model.NodeListener.lambda$fireOnDeleted$2(NodeListener.java:97)
      	at jenkins.util.Listeners.lambda$notify$0(Listeners.java:59)
      	at jenkins.util.Listeners.notify(Listeners.java:70)
      	at jenkins.model.NodeListener.fireOnDeleted(NodeListener.java:97)
      	at jenkins.model.Nodes.removeNode(Nodes.java:297)
      	at jenkins.model.Jenkins.removeNode(Jenkins.java:2257)
      	at hudson.slaves.AbstractCloudSlave.terminate(AbstractCloudSlave.java:91)
      	at org.jenkinsci.plugins.durabletask.executors.OnceRetentionStrategy.lambda$done$5(OnceRetentionStrategy.java:142)
      	at hudson.model.Queue._withLock(Queue.java:1409)
      	at hudson.model.Queue.withLock(Queue.java:1283)
      	at org.jenkinsci.plugins.durabletask.executors.OnceRetentionStrategy.lambda$done$6(OnceRetentionStrategy.java:137)
      	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
      	at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      	at java.base/java.lang.Thread.run(Thread.java:840)
      2024-06-20 11:42:18.147+0000 [id=814]	INFO	j.s.DefaultJnlpSlaveReceiver#channelClosed: Jetty (winstone)-814 for enforce-refactorator-6a1a5da6-2fef-4a93-8296-ccdda1da2c43-sntc6 terminated: java.nio.channels.ClosedChannelException 
      

      Previously resolved item https://issues.jenkins.io/browse/JENKINS-56890 seems to be very similar to this one.
       

            Unassigned Unassigned
            aserzhankou Alexander Serzhankou
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: