Skip to content

Apache Lucene open-source search software

put this optimize back in - we need to make sure the deletes are cleared

Mark Robert Miller917fe18679a0
diff --git a/solr/core/src/test/org/apache/solr/update/SolrCmdDistributorTest.java b/solr/core/src/test/org/apache/solr/update/SolrCmdDistributorTest.java
index e63294588fd..d20c68c7ffc 100644
--- a/solr/core/src/test/org/apache/solr/update/SolrCmdDistributorTest.java
+++ b/solr/core/src/test/org/apache/solr/update/SolrCmdDistributorTest.java
@@ -172,10 +172,11 @@ public class SolrCmdDistributorTest extends BaseDistributedSearchTestCase {
assertEquals(results.toString(), 2, numFound);
// debug stuff
-// for (SolrServer c : clients) {
-// c.optimize();
-// System.out.println(clients.get(0).request(new LukeRequest()));
-// }
+ for (SolrServer c : clients) {
+ c.optimize();
+ // distrib optimize is not working right yet, so call it on each client
+ //System.out.println(clients.get(0).request(new LukeRequest()));
+ }
int id = 5;