JDK-8251017 : java/io/File/GetXSpace.java fails on UNIX
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux,aix
  • CPU: generic
  • Submitted: 2020-08-04
  • Updated: 2024-11-20
  • Resolved: 2020-08-10
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.
JDK 16
16 b11Fixed
Related Reports
Relates :  
Description
The jtreg test java/io/File/GetXSpace.java generates failures  on Linux /  AIX  (on some other platforms it is currently exluded).
So it might be a good idea to exclude it too on AIX/Linux.
 
One stderr example from Linux :
 
FAILED: '/net/mywork': 14059035885568 != 14059035230208
FAILED: '/net/mywork': 14059035885568 != 14059034902528
Exception in thread "main" java.lang.RuntimeException: 416 tests: 2 failure(s), first
        at GetXSpace.main(GetXSpace.java:383)
Caused by: java.lang.RuntimeException: '/net/mywork': 14059035885568 != 14059035230208
        at GetXSpace.setFirst(GetXSpace.java:99)
        at GetXSpace.fail(GetXSpace.java:84)
        at GetXSpace.compare(GetXSpace.java:224)
        at GetXSpace.testDF(GetXSpace.java:367)
        at GetXSpace.main(GetXSpace.java:379)

One idea was that nfs mount should be ignored by the test, because they might change while the test is working.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/a350aed07afc User: bpb Date: 2020-08-10 17:35:11 +0000
10-08-2020

For AIX the test has to be excluded or adjusted, because it does not recognize AIX as supported platform: ----------messages:(3/113)---------- command: shell GetXSpace.sh reason: User specified action: run shell GetXSpace.sh elapsed time (seconds): 0.013 ----------System.out:(1/21)---------- Unrecognized system! ----------System.err:(0/0)----------
04-08-2020