Adrien Grand created LUCENE-6565:
------------------------------------
Summary: Is it ok for IndexWriter.prepareCommit to be an
NRT-visible change?
Key: LUCENE-6565
URL: https://issues.apache.org/jira/browse/LUCENE-6565
Project: Lucene - Core
Issue Type: Task
Reporter: Adrien Grand
Assignee: Michael McCandless
Because of LUCENE-6523, IndexWriter.prepareCommit is now an NRT-visible change.
For instance the following test would fail:
{code}
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
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]