JDK-8077671 : (fs) java/nio/file/FileSystem/Basic.java hangs accessing NFS mount
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 7,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • OS: linux
  • Submitted: 2015-04-14
  • Updated: 2017-04-28
  • Resolved: 2017-04-28
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
tbd_minorResolved
Related Reports
Relates :  
Relates :  
Relates :  
Description
java/nio/file/FileSystem/Basic.java may fail at looping the FileStore:

        // santity check method - need to re-visit this in future as I/O errors
        // are possible
        for (FileStore store: fs.getFileStores()) {
            System.out.println(store);
        }

Especially when NFS mounts has temporary issues.

The similar issue also reported against java/nio/file/FileStore/Basic.java in JDK-8058789

Comments
With the fix for JDK-8173910 in place, the test should not likely continue to fail due to attempting to access stale NFS mounts. If the test no longer fails after a significant number of runs, please add a comment to that effect to this issue. Thanks.
07-02-2017

We've attempted in the past to use "df" and other tools to sanity check the environment but these tools also hang.
14-04-2015