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

Absolute build-timeout doesn't work on a simple sleep job

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • build-timeout-plugin
    • None

      To test the timeout settings I've created Jenkins job which run the simple sleep script:

      while true; do sleep 20; done
      

      (see attachment for exact settings).

      I set absolute timeout to 3 minutes and run the job, but job wasn't aborted in next 10 minutes until I abort it manually.

      Server: jenkins-1.524-1.1.noarch on Fedora 18
      Slave: Ubuntu 13.04
      Jenkins Build Timeout plugin is 1.12.2

      The thread dump looks as follow:

      "Executor #3 for ss0078 : executing testme #3 / waiting for hudson.remoting.Channel@1b87b386:ss0078" Id=47 Group=main TIMED_WAITING on hudson.remoting.UserRequest@2f227a2
      	at java.lang.Object.wait(Native Method)
      	-  waiting on hudson.remoting.UserRequest@2f227a2
      	at hudson.remoting.Request.call(Request.java:146)
      	at hudson.remoting.Channel.call(Channel.java:713)
      	at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:167)
      	at com.sun.proxy.$Proxy57.join(Unknown Source)
      	at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:925)
      	at hudson.Launcher$ProcStarter.join(Launcher.java:360)
      	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:91)
      	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:60)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      	at hudson.model.Build$BuildExecution.build(Build.java:199)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
      	at hudson.model.Run.execute(Run.java:1593)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:247)
      

          [JENKINS-21910] Absolute build-timeout doesn't work on a simple sleep job

          Oleg Nenashev added a comment - - edited

          Off-topic: Such issue may appear on a Windows node with Cygwin.
          If yes, the Cygwin Process Killer plugin would resolve your issue.
          https://wiki.jenkins-ci.org/display/JENKINS/Cygwin+Process+Killer+Plugin

          In the case of Ubuntu nodes such issue should not appear

          Oleg Nenashev added a comment - - edited Off-topic: Such issue may appear on a Windows node with Cygwin. If yes, the Cygwin Process Killer plugin would resolve your issue. https://wiki.jenkins-ci.org/display/JENKINS/Cygwin+Process+Killer+Plugin In the case of Ubuntu nodes such issue should not appear

          I've restarted our Jenkins instance several times and install certain unrelated plugins, and now the issue is not reproducible anymore.

          I have no idea how can I debug this, so I guess we should just close the issue for now.

          Aleksandra Fedorova added a comment - I've restarted our Jenkins instance several times and install certain unrelated plugins, and now the issue is not reproducible anymore. I have no idea how can I debug this, so I guess we should just close the issue for now.

          Oleg Nenashev added a comment -

          OK, please attach build logs if you experience the issue again.
          I also recommend to use LTS versions of Jenkins like 1.509.x or 1.532.x, because they are much more stable.

          Oleg Nenashev added a comment - OK, please attach build logs if you experience the issue again. I also recommend to use LTS versions of Jenkins like 1.509.x or 1.532.x, because they are much more stable.

            Unassigned Unassigned
            bookwar Aleksandra Fedorova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: