You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by is...@apache.org on 2017/06/27 12:53:26 UTC

lucene-solr:master: SOLR-10272: More detailed error message, explaining what to do

Repository: lucene-solr
Updated Branches:
  refs/heads/master 9c75c8082 -> e6f48ca6b


SOLR-10272: More detailed error message, explaining what to do


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

Branch: refs/heads/master
Commit: e6f48ca6bcea8962282b82826709fbfd3c2fa6bb
Parents: 9c75c80
Author: Ishan Chattopadhyaya <is...@apache.org>
Authored: Tue Jun 27 18:16:39 2017 +0530
Committer: Ishan Chattopadhyaya <is...@apache.org>
Committed: Tue Jun 27 18:23:15 2017 +0530

----------------------------------------------------------------------
 .../src/test-files/solr/configsets/_default/conf/solrconfig.xml    | 2 +-
 .../src/test/org/apache/solr/cloud/CollectionsAPISolrJTest.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/e6f48ca6/solr/core/src/test-files/solr/configsets/_default/conf/solrconfig.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/configsets/_default/conf/solrconfig.xml b/solr/core/src/test-files/solr/configsets/_default/conf/solrconfig.xml
index acf95ba..09d8e5a 100644
--- a/solr/core/src/test-files/solr/configsets/_default/conf/solrconfig.xml
+++ b/solr/core/src/test-files/solr/configsets/_default/conf/solrconfig.xml
@@ -24,7 +24,7 @@
   <luceneMatchVersion>${tests.luceneMatchVersion:LATEST}</luceneMatchVersion>
 
   <requestHandler name="my_error_handler" class="solr.ThrowErrorOnInitRequestHandler">
-    <str name="error">This is the _default configset, which is designed to throw error upon collection creation.</str>
+    <str name="error">This is the _default configset, which is designed to throw error upon collection creation from unit tests. If you see this error while running a unit test, you might want to explicitly specify the configset (when creating a collection) you intend to use (usually named "conf1" or "conf" etc.).</str>
   </requestHandler>
 
   <schemaFactory class="ClassicIndexSchemaFactory"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/e6f48ca6/solr/core/src/test/org/apache/solr/cloud/CollectionsAPISolrJTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPISolrJTest.java b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPISolrJTest.java
index 9c414cc..a4ed93f 100644
--- a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPISolrJTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPISolrJTest.java
@@ -71,7 +71,7 @@ public class CollectionsAPISolrJTest extends SolrCloudTestCase {
     System.out.println("Errors are: "+response.getErrorMessages());
     assertTrue(response.getErrorMessages() != null && response.getErrorMessages().size() > 0);
     assertTrue(response.getErrorMessages().getVal(0).contains("This is the _default configset, which is designed"
-        + " to throw error upon collection creation."));
+        + " to throw error upon collection creation"));
   }
 
   @Test