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

IndexWriter suffers temporary short-term amnesia

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 7.0
    • None
    • None
    • New

    Description

      Nightly benchmarks had been failing to run for a while due to trunk API changes, but when I finally fixed those, the indexer fails because IW.maxDoc disagrees with the number of documents indexed after all threads are done indexing.

      It's sort of crazy none of our tests caught this!

      I tracked down the bug; it was caused in LUCENE-7868. The bug is not as bad as it sounds: documents are not in fact lost, it's just IW's internal accounting for maxDoc that's temporarily incorrect until you do a refresh or commit or close the index.

      I'm marking as blocker for 7.0.

      Attachments

        1. LUCENE-7894.patch
          6 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: