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

Hudson test harness intermittently fails to delete temp directories

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
      None
    • Environment:
      OSX 10.6 / Java6 and various 'cloud' based Jenkins services
    • Similar Issues:

      Description

      Tests extending HudsonTestCase intermittently fail with,

      hudson.util.IOException2: Failed to clean up temp dirs
      at org.jvnet.hudson.test.TemporaryDirectoryAllocator.dispose(TemporaryDirectoryAllocator.java:87)
      at org.jvnet.hudson.test.TestEnvironment.dispose(TestEnvironment.java:54)
      at org.jvnet.hudson.test.HudsonTestCase.tearDown(HudsonTestCase.java:304)
      at junit.framework.TestCase.runBare(TestCase.java:140)
      at org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:224)
      at junit.framework.TestResult$1.protect(TestResult.java:110)
      at junit.framework.TestResult.runProtected(TestResult.java:128)
      at junit.framework.TestResult.run(TestResult.java:113)
      at junit.framework.TestCase.run(TestCase.java:124)
      at junit.framework.TestSuite.runTest(TestSuite.java:232)
      at junit.framework.TestSuite.run(TestSuite.java:227)
      at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
      at $Proxy0.invoke(Unknown Source)
      at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
      at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
      Caused by: java.io.IOException: Unable to delete /tmp/hudson8023746522728512854test/jobs - files in dir: [/tmp/hudson8023746522728512854test/jobs/fail]
      at hudson.Util.deleteFile(Util.java:260)
      at hudson.Util.deleteRecursive(Util.java:303)
      at hudson.Util.deleteContentsRecursive(Util.java:222)
      at hudson.Util.deleteRecursive(Util.java:302)
      at hudson.FilePath$9.invoke(FilePath.java:821)
      at hudson.FilePath$9.invoke(FilePath.java:819)
      at hudson.FilePath.act(FilePath.java:753)
      at hudson.FilePath.act(FilePath.java:735)
      at hudson.FilePath.deleteRecursive(FilePath.java:819)
      at org.jvnet.hudson.test.TemporaryDirectoryAllocator.dispose(TemporaryDirectoryAllocator.java:82)
      ... 23 more

      This happens on the main hudson-on-hudson server and also on cloudbees.com,

        Attachments

          Issue Links

            Activity

            Hide
            swestcott Simon Westcott added a comment -

            This may relate to JENKINS-4409, however this error relates to TemporaryDirectoryAllocator.dispose() rather than TemporaryDirectoryAllocator.disposeAsync()

            Show
            swestcott Simon Westcott added a comment - This may relate to JENKINS-4409 , however this error relates to TemporaryDirectoryAllocator.dispose() rather than TemporaryDirectoryAllocator.disposeAsync()
            Hide
            swestcott Simon Westcott added a comment -

            Screenshots of the mentioned failures, incase the builds are deleted.

            Show
            swestcott Simon Westcott added a comment - Screenshots of the mentioned failures, incase the builds are deleted.
            Show
            swestcott Simon Westcott added a comment - Another build just failed on Couldbees due to this - https://swestcott.ci.cloudbees.com/job/Jenkins%20Bulk%20Builder/org.jvnet.hudson.plugins$bulk-builder/24/testReport/junit/org.jvnet.hudson.plugins.bulkbuilder.model/BuilderTest/testBuildFailed/
            Hide
            jglick Jesse Glick added a comment -

            ikedam do you know if this in fact duplicates JENKINS-4409, or if it is a separate issue?

            Show
            jglick Jesse Glick added a comment - ikedam do you know if this in fact duplicates JENKINS-4409 , or if it is a separate issue?

              People

              • Assignee:
                Unassigned
                Reporter:
                swestcott Simon Westcott
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: