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

DirectoryTaxonomyWriter should throw a proper exception if it was closed

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.5, 4.0-ALPHA
    • modules/facet
    • None
    • New, Patch Available

    Description

      DirTaxoWriter may throw random exceptions (NPE, Already Closed - depend on what API you call) after it has been closed/rollback. We should detect up front that it is already closed, and throw AlreadyClosedException.

      Also, on LUCENE-3573 Doron pointed out a problem with DTW.rollback – it should call close() rather than refreshReader. I will fix that as well in this issue.

      Attachments

        1. LUCENE-3579.patch
          7 kB
          Shai Erera

        Activity

          People

            shaie Shai Erera
            shaie Shai Erera
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment