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

polling fails when cloud slaves shutdowns fast

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • git-plugin
    • None
    • 2.4.0/1.18.0
      1.609.3

      When no WS required polling is run as usually, but when build is going it tries poll using this build that ends in stacktrace?

      Started on Sep 16, 2015 1:51:41 AM
      Polling SCM changes on docker-5f823700b921
      Using strategy: Default
      [poll] Last Built Revision: Revision 653b08cf73531b28015ff601b1e292236ed3b898 (origin/branch)
      FATAL: remote file operation failed: /home/jenkins/workspace/JOB at hudson.remoting.Channel@534f2fda:docker-5f823700b921: hudson.remoting.ChannelClosedException: channel is already closed
      java.io.IOException: remote file operation failed: /home/jenkins/workspace/JOB at hudson.remoting.Channel@534f2fda:docker-5f823700b921: hudson.remoting.ChannelClosedException: channel is already closed
      	at hudson.FilePath.act(FilePath.java:985)
      	at hudson.FilePath.act(FilePath.java:967)
      	at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:131)
      	at hudson.plugins.git.GitSCM.createClient(GitSCM.java:705)
      	at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:646)
      	at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:527)
      	at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:380)
      	at hudson.scm.SCM.poll(SCM.java:397)
      	at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1471)
      	at hudson.model.AbstractProject._poll(AbstractProject.java:1442)
      	at hudson.model.AbstractProject.poll(AbstractProject.java:1353)
      	at jenkins.triggers.SCMTriggerItem$SCMTriggerItems$Bridge.poll(SCMTriggerItem.java:119)
      	at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:510)
      	at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:539)
      	at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: hudson.remoting.ChannelClosedException: channel is already closed
      	at hudson.remoting.Channel.send(Channel.java:575)
      	at hudson.remoting.Request.call(Request.java:130)
      	at hudson.remoting.Channel.call(Channel.java:777)
      	at hudson.FilePath.act(FilePath.java:978)
      	... 19 more
      Caused by: java.io.IOException
      	at hudson.remoting.Channel.close(Channel.java:1160)
      	at hudson.remoting.Channel.close(Channel.java:1135)
      	at hudson.slaves.SlaveComputer.closeChannel(SlaveComputer.java:678)
      	at hudson.slaves.SlaveComputer.access$600(SlaveComputer.java:94)
      	at hudson.slaves.SlaveComputer$3.run(SlaveComputer.java:607)
      	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      	... 5 more
      Done. Took 40 sec
      No changes
      

      Build on cloud slave existed for 46 sec.
      Seems polling dies with stacktrace because it tries to do WS based polling on slave that shutdowns soon.

            markewaite Mark Waite
            integer Kanstantsin Shautsou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: