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

Add a mockfs with unpredictable but deterministic file listing order

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.2, 6.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: