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

DirectoryTaxonomyWriter can lose the INDEX_CREATE_TIME property, causing DirTaxoReader.refresh() to falsely succeed (or fail)

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.6, 4.0-ALPHA
    • modules/facet
    • None
    • New, Patch Available

    Description

      DirTaxoWriter sets createTime to null after it put it in the commit data once. But that's wrong because if one calls commit(Map<>) twice, the second time doesn't record the creation time. Also, in the ctor, if an index exists and OpenMode is not CREATE, the creation time property is not read.

      I wrote a couple of unit tests that assert this, and modified DirTaxoWriter to always record the creation time (in every commit) – that's the only safe way.

      Will upload a patch shortly.

      Attachments

        1. LUCENE-3794.patch
          13 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: