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

If indexwriter hits a non-ioexception from indexExists it leaks a write.lock

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.6, 4.0-ALPHA
    • None
    • None
    • New

    Description

      the rest of IW's ctor is careful about this.

      IndexReader.indexExists catches any IOException and returns false, but the problem
      occurs if some other exception (in my test, UnsupportedOperationException, but you
      can imagine others are possible), when trying to e.g. read in the segments file.

      I think we just need to move the IR.exists stuff inside the try / finally

      Attachments

        1. LUCENE-3660.patch
          3 kB
          Robert Muir

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: