You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ct...@apache.org on 2017/05/10 12:34:55 UTC

[08/50] [abbrv] lucene-solr:jira/solr-10290: SOLR-9867: rollback SDF.createCoreContainer(). disable testTechproductsExample

SOLR-9867: rollback SDF.createCoreContainer(). disable testTechproductsExample


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/76fc3839
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/76fc3839
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/76fc3839

Branch: refs/heads/jira/solr-10290
Commit: 76fc383911c83f5166ee5f2ae2dcace63efd2c10
Parents: e6f7dd4
Author: Mikhail Khludnev <mk...@apache.org>
Authored: Thu May 4 16:19:14 2017 +0300
Committer: Cassandra Targett <ca...@lucidworks.com>
Committed: Wed May 10 07:30:32 2017 -0500

----------------------------------------------------------------------
 .../src/java/org/apache/solr/servlet/SolrDispatchFilter.java   | 6 +++---
 .../src/test/org/apache/solr/util/TestSolrCLIRunExample.java   | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/76fc3839/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java b/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java
index c4e0d0d..02b0460 100644
--- a/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java
+++ b/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java
@@ -247,9 +247,9 @@ public class SolrDispatchFilter extends BaseSolrFilter {
    */
   protected CoreContainer createCoreContainer(Path solrHome, Properties extraProperties) {
     NodeConfig nodeConfig = loadNodeConfig(solrHome, extraProperties);
-    CoreContainer coreContainer = new CoreContainer(nodeConfig, extraProperties, true);
-    coreContainer.load();
-    return coreContainer;
+    cores = new CoreContainer(nodeConfig, extraProperties, true);
+    cores.load();
+    return cores;
   }
 
   /**

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/76fc3839/solr/core/src/test/org/apache/solr/util/TestSolrCLIRunExample.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/util/TestSolrCLIRunExample.java b/solr/core/src/test/org/apache/solr/util/TestSolrCLIRunExample.java
index 6bce8226..86790c8 100644
--- a/solr/core/src/test/org/apache/solr/util/TestSolrCLIRunExample.java
+++ b/solr/core/src/test/org/apache/solr/util/TestSolrCLIRunExample.java
@@ -50,6 +50,7 @@ import org.apache.solr.common.SolrInputDocument;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -296,7 +297,7 @@ public class TestSolrCLIRunExample extends SolrTestCaseJ4 {
       closeables = null;
     }
   }
-
+  @Ignore
   @Test
   public void testTechproductsExample() throws Exception {
     testExample("techproducts");