Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6442

Add a mockfs with unpredictable but deterministic file listing order

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      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.

        Attachments

        1. LUCENE-6442.patch
          59 kB
          Robert Muir

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: