JDK-6492634 : test/java/io/File/GetXSpace.java fails when it hits a Solaris/ZFS filesystem
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 6
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: solaris_10
  • CPU: generic
  • Submitted: 2006-11-11
  • Updated: 2020-07-31
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.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Relates :  
Description
When accessing a ZFS filesystem (directly or via NFS) the numbers
returned do not add up for GetXSpace.java and the test fails:

----------System.err:(16/835)----------
FAILED: '/v': 17704157184 != 17704076288
FAILED: '/v/martin': 17704157184 != 17704074240
FAILED: '/net/lonepeak.sfbay/w': 47596492800 != 47596493312
FAILED: '/net/lonepeak.sfbay/w/devtools': 49513117696 != 49513118208
FAILED: '/v': 17704157184 != 17704076288
FAILED: '/v/martin': 17704157184 != 17704074240
FAILED: '/net/lonepeak.sfbay/w': 47596492800 != 47596493312
FAILED: '/net/lonepeak.sfbay/w/devtools': 49513117696 != 49513118208
Exception in thread "main" java.lang.RuntimeException: 546 tests: 8 failure(s), first
	at GetXSpace.main(GetXSpace.java:359)
Caused by: java.lang.RuntimeException: '/v': 17704157184 != 17704076288
	at GetXSpace.setFirst(GetXSpace.java:75)
	at GetXSpace.fail(GetXSpace.java:60)
	at GetXSpace.compare(GetXSpace.java:200)
	at GetXSpace.testDF(GetXSpace.java:343)
	at GetXSpace.main(GetXSpace.java:355)
result: Failed. Execution failed: exit code 1


test result: Failed. Execution failed: exit code 1



The full .jtr file is too large to include here - see attachments.

Comments
This test is not on the problem list and no recent occurrences have been reported. Is it still relevant?
01-11-2019

This test has been excluded for some-time (needs to be re-written)
10-04-2013

PUBLIC COMMENTS See "ZFS Space Accounting" here: http://docs.sun.com/app/docs/doc/819-5461/gbcik?a=view For additional details about ZFS space consumption reported by the du and df commands, see the following link: http://opensolaris.org/os/community/zfs/faq/#whydusize
21-10-2009