8224617: (fs) java/nio/file/FileStore/Basic.java found filesystem twice

Brian Burkhalter brian.burkhalter at oracle.com
Wed Jun 5 23:04:49 UTC 2019


> On May 28, 2019, at 11:36 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 
> On 28/05/2019 20:45, Brian Burkhalter wrote:
>> 
>> Yes I changed the name more than once while writing this:
> areAllMountPointsAccessible seems okay.
> 
>> 
>> It is not specified whether it does or does not as far as I can see. The test FileStore/Basic historically only flags duplicates if they are successors in the FileStore iteration. The order of the elements in the iteration is undefined according to the specification however. I would think that either duplicates should be allowed in the iteration or if they are not allowed then the error should be independent of their order. In either of these cases the test has been wrong and still is.
>> 
> I think we'll need to do a bit more investigation on this as FileSystem::getFileStores shouldn't have duplicates (and I think the test was checking for that). So I think we need to dig into how we are ending up with duplicates in the mount table and then decide if they need to be filtered or not.

Perhaps we can resolve the issue at hand with [1] and file another issue to investigate whether to filter dups in FilesSystems::getFileStores?

Thanks,

Brian

[1] http://cr.openjdk.java.net/~bpb/8224617/webrev.01
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190605/223275ef/attachment.html>


More information about the nio-dev mailing list