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

DirectoryTaxonomyWriter should throw a proper exception if it was closed

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5, 4.0-ALPHA
    • Component/s: modules/facet
    • Labels:
      None
    • Lucene Fields:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: