JDK-6475005 : Various regression tests are not cleaning up on exit
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-09-26
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7 b03Fixed
Related Reports
Relates :  
Relates :  
There are a number of regression tests which are not properly cleaning up after themselves on exit.

Some of the regression tests are using File.createTempFile() without cleaning up the dead files.  As a result, I had almost *36 GB* of dead space on sheen.  Obviously, that's a problem.  Builds were crawling or dying, spurious failures...etc...

The easiest way to avoid this is to use the following pattern:

    File f = File.createTemptFile(...);

rather than trying to catch your errors in case of failure.  In some cases, there was no attempt at cleanup at all, success or failure.

Please clean these up ASAP.  The changes are very easy.

Network files


General TL files

./java/nio/channels/FileChannel/Lock.java   (should be tagged after creation)
./java/util/zip/ZipFile/ManyZipFiles.java  (should be tagged after creation)

Others (file a new bug if desired):


EVALUATION The following tests have been updated as described in the description section: test/com/sun/net/httpserver/SelCacheTest.java test/com/sun/net/httpserver/Test1.java test/com/sun/net/httpserver/Test12.java test/com/sun/net/httpserver/Test13.java test/com/sun/net/httpserver/Test9.java test/com/sun/net/httpserver/Test9a.java test/java/net/URLConnection/UnknownContentType.java test/sun/net/www/protocol/file/FileMap.java test/sun/net/www/protocol/file/GetLastModified.java test/java/nio/channels/FileChannel/Lock.java test/java/nio/channels/FileChannel/Size.java test/java/nio/channels/FileChannel/Truncate.java test/java/util/zip/ZipFile/ManyZipFiles.java test/sun/misc/URLClassPath/FileLoaderTest.java This will greatly reduce the amount of disk space consumed by these tests if they encounter an erroneous suitation.

EVALUATION see comments: