You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2012/04/14 18:01:17 UTC
svn commit: r1326136 -
/lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
Author: yonik
Date: Sat Apr 14 16:01:17 2012
New Revision: 1326136
URL: http://svn.apache.org/viewvc?rev=1326136&view=rev
Log:
tests: don't check for FC insanity
Modified:
lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestDistributedSearch.java?rev=1326136&r1=1326135&r2=1326136&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestDistributedSearch.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestDistributedSearch.java Sat Apr 14 16:01:17 2012
@@ -23,6 +23,7 @@ import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
+import org.apache.lucene.search.FieldCache;
import org.apache.solr.client.solrj.SolrServer;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.embedded.JettySolrRunner;
@@ -90,6 +91,9 @@ public class TestDistributedSearch exten
tdate_b, "2010-01-05T11:00:00Z",
t1,"all the kings horses and all the kings men");
indexr(id,9, i1, 7, tlong, 7,t1,"couldn't put humpty together again");
+
+ commit(); // try to ensure there's more than one segment
+
indexr(id,10, i1, 4321, tlong, 4321,t1,"this too shall pass");
indexr(id,11, i1, -987, tlong, 987,
t1,"An eye for eye only ends up making the whole world blind.");
@@ -356,6 +360,8 @@ public class TestDistributedSearch exten
// query("q","matchesnothing","fl","*,score", "debugQuery", "true");
// Thread.sleep(10000000000L);
+
+ purgeFieldCache(FieldCache.DEFAULT); // avoid FC insanity
}
protected void queryPartialResults(final List<String> upShards,