lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6442) Add a mockfs with unpredictable but deterministic file listing order
Date Tue, 21 Apr 2015 11:33:59 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-6442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14504802#comment-14504802
] 

ASF subversion and git services commented on LUCENE-6442:
---------------------------------------------------------

Commit 1675097 from [~rcmuir] in branch 'dev/trunk'
[ https://svn.apache.org/r1675097 ]

LUCENE-6442: Add mockfs with unpredictable but deterministic file listing order

> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message