RFR: 8276994: java/nio/channels/Channels/TransferTo.java leaves multi-GB files in /tmp

Sean Coffey coffeys at openjdk.java.net
Thu Nov 11 17:57:41 UTC 2021


On Thu, 11 Nov 2021 17:01:48 GMT, Lance Andersen <lancea at openjdk.org> wrote:

> Hi,
> 
> This patch addresses the issue where the very large temp files are not cleaned up after the testMoreThanTwoGB completes.
> 
> 
> Best
> Lance

test/jdk/java/nio/channels/Channels/TransferTo.java line 143:

> 141:         // preparing two temporary files which will be compared at the end of the test
> 142:         Path sourceFile = Files.createTempFile(null, null);
> 143:         Path targetFile = Files.createTempFile(null, null);

can we add an identifier to the tmp files ? In the case where deletion fails, we'll be able to identify the origin more easily.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6360


More information about the nio-dev mailing list