You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2015/06/15 11:24:02 UTC
[jira] [Created] (LUCENE-6565) Is it ok for
IndexWriter.prepareCommit to be an NRT-visible change?
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org