RFR: 8346972: Test java/nio/channels/FileChannel/LoopingTruncate.java fails sometimes with IOException: There is not enough space on the disk
Brian Burkhalter
bpb at openjdk.org
Thu Jan 9 15:59:37 UTC 2025
On Thu, 9 Jan 2025 15:48:49 GMT, Alan Bateman <alanb 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(System.getProperty("user.dir")) will work too.
If that approach is taken, then line 27 `@modules ...` can be removed.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23011#discussion_r1909072628
More information about the nio-dev
mailing list