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

Workspaces seem to be removed prematurely on concurrent jobs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
    • Similar Issues:

      Description

      Concurrent Builds workspaces are sometimes removed before the build steps have completed.
      This is not seen on the primary workspace, only those that get "@2" etc appended.

      This causes a failure on the job in question - symptoms somewhat varying depending on the process running. Generally a file not found, followed by a process complaining that its Current Working directory has gone.

      Hard to reproduce, but reproducibility seems to increase with uptime from rare to more than daily.

      Affects builds running on both linux and windows slave nodes. Not seen on builds running on master.
      Disk space, memory and cpu availability more than adequate.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            core/src/main/java/hudson/model/AbstractBuild.java
            http://jenkins-ci.org/commit/jenkins/d95e16428c47933a6a81c5508f92d977ab2efa4d
            Log:
            [FIXED JENKINS-10615]

            Hold on to the lease until the very end.
            Previously, the lease was only held until the main build section is over, before publishers start running.

            (cherry picked from commit d183345007ecd6fae01565975fb48ddec6e47af4)

            Conflicts:
            changelog.html

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: core/src/main/java/hudson/model/AbstractBuild.java http://jenkins-ci.org/commit/jenkins/d95e16428c47933a6a81c5508f92d977ab2efa4d Log: [FIXED JENKINS-10615] Hold on to the lease until the very end. Previously, the lease was only held until the main build section is over, before publishers start running. (cherry picked from commit d183345007ecd6fae01565975fb48ddec6e47af4) Conflicts: changelog.html
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            test/src/test/groovy/hudson/model/AbstractProjectTest.groovy
            http://jenkins-ci.org/commit/jenkins/85e9e126773c0bb20a8529a2e6591dde17d7e209
            Log:
            JENKINS-10615 AbstractProjectTest.testWorkspaceLock frequently fails on jenkins.ci due to InterruptedException in HudsonTestCase.setUp.
            Possibly because it is sorted after JENKINS-15156 testGetBuildAfterGC and the test suite times out.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: test/src/test/groovy/hudson/model/AbstractProjectTest.groovy http://jenkins-ci.org/commit/jenkins/85e9e126773c0bb20a8529a2e6591dde17d7e209 Log: JENKINS-10615 AbstractProjectTest.testWorkspaceLock frequently fails on jenkins.ci due to InterruptedException in HudsonTestCase.setUp. Possibly because it is sorted after JENKINS-15156 testGetBuildAfterGC and the test suite times out.
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #3111
            JENKINS-10615 AbstractProjectTest.testWorkspaceLock frequently fails on jenkins.ci due to InterruptedException in HudsonTestCase.setUp. (Revision 85e9e126773c0bb20a8529a2e6591dde17d7e209)

            Result = SUCCESS
            Jesse Glick : 85e9e126773c0bb20a8529a2e6591dde17d7e209
            Files :

            • test/src/test/groovy/hudson/model/AbstractProjectTest.groovy
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3111 JENKINS-10615 AbstractProjectTest.testWorkspaceLock frequently fails on jenkins.ci due to InterruptedException in HudsonTestCase.setUp. (Revision 85e9e126773c0bb20a8529a2e6591dde17d7e209) Result = SUCCESS Jesse Glick : 85e9e126773c0bb20a8529a2e6591dde17d7e209 Files : test/src/test/groovy/hudson/model/AbstractProjectTest.groovy
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            test/src/test/groovy/hudson/model/AbstractProjectTest.groovy
            http://jenkins-ci.org/commit/jenkins/389a565de417170f586830ee9fa7a7ec9749fc68
            Log:
            JENKINS-10615 AbstractProjectTest.testWorkspaceLock frequently fails on jenkins.ci due to InterruptedException in HudsonTestCase.setUp.
            Possibly because it is sorted after JENKINS-15156 testGetBuildAfterGC and the test suite times out.

            (cherry picked from commit 85e9e126773c0bb20a8529a2e6591dde17d7e209)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: test/src/test/groovy/hudson/model/AbstractProjectTest.groovy http://jenkins-ci.org/commit/jenkins/389a565de417170f586830ee9fa7a7ec9749fc68 Log: JENKINS-10615 AbstractProjectTest.testWorkspaceLock frequently fails on jenkins.ci due to InterruptedException in HudsonTestCase.setUp. Possibly because it is sorted after JENKINS-15156 testGetBuildAfterGC and the test suite times out. (cherry picked from commit 85e9e126773c0bb20a8529a2e6591dde17d7e209)
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #3715
            JENKINS-10615 AbstractProjectTest.testWorkspaceLock frequently fails on jenkins.ci due to InterruptedException in HudsonTestCase.setUp. (Revision 389a565de417170f586830ee9fa7a7ec9749fc68)

            Result = SUCCESS
            Jesse Glick : 389a565de417170f586830ee9fa7a7ec9749fc68
            Files :

            • test/src/test/groovy/hudson/model/AbstractProjectTest.groovy
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3715 JENKINS-10615 AbstractProjectTest.testWorkspaceLock frequently fails on jenkins.ci due to InterruptedException in HudsonTestCase.setUp. (Revision 389a565de417170f586830ee9fa7a7ec9749fc68) Result = SUCCESS Jesse Glick : 389a565de417170f586830ee9fa7a7ec9749fc68 Files : test/src/test/groovy/hudson/model/AbstractProjectTest.groovy

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                dannystaple Danny Staple
              • Votes:
                6 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: