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

Hudson test harness intermittently fails to delete temp directories

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None
    • OSX 10.6 / Java6 and various 'cloud' based Jenkins services

      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,

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

              Created:
              Updated: