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

MockDirectoryWrapper synchronizes too much

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-BETA, 6.0
    • general/test
    • None
    • New

    Description

      This could hide real underlying bugs.

      Instead we can:

      • make it extend BaseDirectoryWrapper, which checks index on close (but thats it)
      • occasionally return BaseDirectoryWrapper from newDirectory()
      • add newMockDirectory() for those specific tests that actually use its special stuff.

      Attachments

        1. LUCENE-4243.patch
          61 kB
          Robert Muir
        2. LUCENE-4243.patch
          59 kB
          Robert Muir

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: