lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r826557 - /lucene/java/branches/lucene_2_9/src/test/org/apache/lucene/index/TestIndexWriter.java
Date Mon, 19 Oct 2009 00:01:28 GMT
Author: mikemccand
Date: Mon Oct 19 00:01:28 2009
New Revision: 826557

URL: http://svn.apache.org/viewvc?rev=826557&view=rev
Log:
LUCENE-1992: suppress exceptions in CMS in testExceptionDuringSync

Modified:
    lucene/java/branches/lucene_2_9/src/test/org/apache/lucene/index/TestIndexWriter.java

Modified: lucene/java/branches/lucene_2_9/src/test/org/apache/lucene/index/TestIndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/src/test/org/apache/lucene/index/TestIndexWriter.java?rev=826557&r1=826556&r2=826557&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/src/test/org/apache/lucene/index/TestIndexWriter.java
(original)
+++ lucene/java/branches/lucene_2_9/src/test/org/apache/lucene/index/TestIndexWriter.java
Mon Oct 19 00:01:28 2009
@@ -2791,6 +2791,8 @@
     failure.setDoFail();
 
     ConcurrentMergeScheduler cms = new ConcurrentMergeScheduler();
+    // We expect sync exceptions in the merge threads
+    cms.setSuppressExceptions();
     writer.setMergeScheduler(cms);
     writer.setMaxBufferedDocs(2);
     writer.setMergeFactor(5);



Mime
View raw message