From e6f48ca6bcea8962282b82826709fbfd3c2fa6bb Mon Sep 17 00:00:00 2001 From: Ishan Chattopadhyaya Date: Tue, 27 Jun 2017 18:16:39 +0530 Subject: [PATCH] SOLR-10272: More detailed error message, explaining what to do --- .../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(-) 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 acf95bad209..09d8e5ab10d 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 @@ ${tests.luceneMatchVersion:LATEST} - This is the _default configset, which is designed to throw error upon collection creation. + 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.). 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 9c414cc5f28..a4ed93f4ce1 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