[ 
https://issues.apache.org/jira/browse/LUCENE-6442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Muir updated LUCENE-6442:
--------------------------------
    Attachment: LUCENE-6442.patch

Here is a patch. the new shuffling one is tiny, but i refactored and added more 
tests for the mockfs things.

I also cleaned up the extras to be more clear, like Dawid had suggested 
(LUCENE-6434).

> Add a mockfs with unpredictable but deterministic file listing order
> --------------------------------------------------------------------
>
>                 Key: LUCENE-6442
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6442
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Robert Muir
>         Attachments: LUCENE-6442.patch
>
>
> Any test that processes with directory listing apis (Directory.listAll(), 
> DirectoryStream, walkFileTree, etc) and does not sort the results can cause 
> reproducibility difficulties, because it might e.g. consume from random() in 
> a different order and so on.
> We can instead sort and shuffle in a predictable way per-class based on the 
> random seed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to