message (to infoStream) when a merge exception is handled

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@765663 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-04-16 15:22:09 +00:00
parent f5831d86ae
commit 33f6b48d1a
1 changed files with 5 additions and 0 deletions

View File

@ -4328,6 +4328,11 @@ public class IndexWriter {
}
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: