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

Add more safety checks to MockDirectoryWrapper

    XMLWordPrintableJSON

    Details

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

      Description

      When working on LUCENE-6124, i had to force FSDirectory in my test to find bugs.

      for performance reasons, no IndexInput/Outputs are doing any checks like ensureOpen when reading and writing data, but MockDirectoryWrapper needs to do this so that tests can find bugs.

        Attachments

        1. LUCENE-6125.patch
          3 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: