[ https://jira.codehaus.org/browse/SUREFIRE-1031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=332875#comment-332875 ]
Sergei Ivanov commented on SUREFIRE-1031: ----------------------------------------- I believe this issue is a root cause of temporary partition overfilling on our Jenkins host. Some of our projects contain hundreds of unit tests and they produce a lot of output, which results in /tmp quickly filling up with files like {{stdout9077800675661040491deferred}}. For the time being, we had to set up a cron job to purge those files, but a more robust implementation inside a plugin would be very welcome. Ideally, the plugin must take responsibility for good housekeeping and remove the temporary output files when they are no longer needed. > Temp files are not deleted properly > ----------------------------------- > > Key: SUREFIRE-1031 > URL: https://jira.codehaus.org/browse/SUREFIRE-1031 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin > Affects Versions: 2.15, 2.16 > Reporter: Vjatseslav Rosin > Fix For: 2.17 > > > After the SUREFIRE-938 fix was introduced in version 2.15 there is a problem > of two much temp files created in the temp folder. This is related to this > issue in DeferredFileOutputStream of common-io: > https://issues.apache.org/jira/browse/IO-397 > As a workaround it would be nice to have a configuration option for memory > threshold size instead of hardcoded 1MB. > Another solutions would be do delete the temp file explicitly (if it exists) > before closing the DeferredFileOutputStream. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira