You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2014/09/19 11:11:17 UTC

svn commit: r1626152 - in /lucene/dev/trunk: ./ lucene/ lucene/CHANGES.txt

Author: mikemccand
Date: Fri Sep 19 09:11:17 2014
New Revision: 1626152

URL: http://svn.apache.org/r1626152
Log:
LUCENE-4246: clarify IW.close change

Modified:
    lucene/dev/trunk/   (props changed)
    lucene/dev/trunk/lucene/   (props changed)
    lucene/dev/trunk/lucene/CHANGES.txt   (contents, props changed)

Modified: lucene/dev/trunk/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/CHANGES.txt?rev=1626152&r1=1626151&r2=1626152&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/CHANGES.txt (original)
+++ lucene/dev/trunk/lucene/CHANGES.txt Fri Sep 19 09:11:17 2014
@@ -53,13 +53,9 @@ API Changes
 * LUCENE-5527: The Collector API has been refactored to use a dedicated Collector
   per leaf. (Shikhar Bhushan, Adrien Grand)
 
-* LUCENE-4246: IndexWriter.close now discards any changes and always
-  closes, even if it throws an exception.  If matchVersion is <
-  LUCENE_50 yet there were uncommitted changes or still-running
-  merges, then a RuntimeException will be thrown indicating changes
-  were lost (but the writer will still be closed).  Finally, a new
-  shutdown method was added to do what close used to do (flush, wait
-  for merges, commit, close).
+* LUCENE-4246: IndexWriter.close now always closes, even if it throws
+  an exception.  The new IndexWriterConfig.setCommitOnClose (default
+  true) determines whether close() should commit before closing.
 
 * LUCENE-5608, LUCENE-5565: Refactor SpatialPrefixTree/Cell API. Doesn't use Strings
   as tokens anymore, and now iterates cells on-demand during indexing instead of