lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r765663 - /lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java
Date Thu, 16 Apr 2009 15:22:13 GMT
Author: mikemccand
Date: Thu Apr 16 15:22:09 2009
New Revision: 765663

URL: http://svn.apache.org/viewvc?rev=765663&view=rev
Log:
message (to infoStream) when a merge exception is handled

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java?rev=765663&r1=765662&r2=765663&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java Thu Apr 16 15:22:09
2009
@@ -4328,6 +4328,11 @@
   }
 
   final private void handleMergeException(Throwable t, MergePolicy.OneMerge merge) throws
IOException {
+
+    if (infoStream != null) {
+      message("handleMergeException: merge=" + merge.segString(directory) + " exc=" + t);
+    }
+
     // Set the exception on the merge, so if
     // optimize() is waiting on us it sees the root
     // cause exception:



Mime
View raw message