RFR: 8346972: Test java/nio/channels/FileChannel/LoopingTruncate.java fails sometimes with IOException: There is not enough space on the disk

Alan Bateman alanb at openjdk.org
Thu Jan 9 15:51:44 UTC 2025


On Thu, 9 Jan 2025 15:23:55 GMT, Volkan Yazıcı <duke at openjdk.org> wrote:

> Switches from using the temporary directory to work directory in `LoopingTruncate`. This should effectively provide sufficient space for the test finish. Solution is tipped by @bplb. `tier1,2` tests' results will be attached to the ticket once they finish.

test/jdk/java/nio/channels/FileChannel/LoopingTruncate.java line 53:

> 51: 
> 52:     public static void main(String[] args) throws Throwable {
> 53:         Path dir = Path.of(StaticProperty.userDir());

If you change this to Path.of(".") then it would avoid using a JDK internal class, Path.of("user.dir") will work too.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23011#discussion_r1909057657


More information about the nio-dev mailing list