Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1051

Surefire plugin creates files in /tmp and does not delete them on exit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.16
    • None
    • None
    • None

    Description

      As of SUREFIRE-938 Surefire creates files such as /tmp/stdout452978518391772295deferred, but never seems to delete them on JVM exit. Surefire does not call File.deleteOnExit(), and neither does DeferredFileOutputStream. So our Jenkins machine just ran out of space on /tmp

      If you don't want to wait until Commons IO fixes DeferredFileOutputStream, it has a handy getFile() method which you can call deleteOnExit() on (when it's not null that is).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              andrei.badea Andrei Badea
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: