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

Is it ok for IndexWriter.prepareCommit to be an NRT-visible change?

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • New

    Description

      Because of LUCENE-6523, IndexWriter.prepareCommit is now an NRT-visible change. For instance the following test would fail:

      Directory dir = newDirectory();
      IndexWriter w = new IndexWriter(dir, new IndexWriterConfig(new MockAnalyzer(random())));
      w.addDocument(new Document());
      DirectoryReader reader = DirectoryReader.open(w, true);
      assertNull(DirectoryReader.openIfChanged(reader)); // ok
      w.prepareCommit();
      assertNull(DirectoryReader.openIfChanged(reader)); // fails
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: