lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r927837 - /lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/LargeVolumeTestBase.java
Date Fri, 26 Mar 2010 13:21:06 GMT
Author: yonik
Date: Fri Mar 26 13:21:06 2010
New Revision: 927837

URL: http://svn.apache.org/viewvc?rev=927837&view=rev
Log:
tests: prevent expected commit exceptions from failing test

Modified:
    lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/LargeVolumeTestBase.java

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/LargeVolumeTestBase.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/LargeVolumeTestBase.java?rev=927837&r1=927836&r2=927837&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/LargeVolumeTestBase.java (original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/LargeVolumeTestBase.java Fri
Mar 26 13:21:06 2010
@@ -105,10 +105,16 @@ public abstract class LargeVolumeTestBas
         }
         resp = tserver.add(docs);
         assertEquals(0, resp.getStatus());
+
+        try {
         resp = tserver.commit();
         assertEquals(0, resp.getStatus());
         resp = tserver.optimize();
         assertEquals(0, resp.getStatus());
+        } catch (Exception e) {
+          // a commit/optimize can fail with a too many warming searchers exception
+          log.info("Caught benign exception during commit: " + e.getMessage());
+        }
 
       } catch (Exception e) {
         e.printStackTrace();



Mime
View raw message