lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
Date Thu, 19 May 2011 18:04:47 GMT


Yonik Seeley commented on SOLR-2500:

I don't have much time to look at this right now (and I don't really know the test), but I
just tried running it directly from intellij and that failed also.

First, note that it tries to use something off the CWD... but then the core container is created
under build/tests:
INFO: pwd: /opt/code/lusolr/.
2011-05-19 20.52.58 org.apache.solr.core.CoreContainer <init>
INFO: New CoreContainer 746169063
2011-05-19 20.52.58 org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to '/opt/code/lusolr/solr/build/tests/solr/shared/'
2011-05-19 20.52.58 org.apache.solr.core.SolrResourceLoader <init>

This causes a problem when it comes time to delete later:
WARNING: !!!! WARNING: best effort to remove /opt/code/lusolr/solr/shared/data FAILED !!!!!

Of course the weird thing is that tearDown() only tries to delete the data directory and not
the whole solr home... this seems incorrect?
That would lead to leaving around an old solr.xml file (since it's outside the data directory)
and could cause issues the next time the test is run.

> TestSolrCoreProperties sometimes fails with "no such core: core0"
> -----------------------------------------------------------------
>                 Key: SOLR-2500
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Robert Muir
>         Attachments: SOLR-2500.patch, SOLR-2500.patch, solr-after-1st-run.xml, solr-clean.xml
>     [junit] Testsuite: org.apache.solr.client.solrj.embedded.TestSolrProperties
>     [junit] Testcase: testProperties(org.apache.solr.client.solrj.embedded.TestSolrProperties):
Caused an ERROR
>     [junit] No such core: core0
>     [junit] org.apache.solr.common.SolrException: No such core: core0
>     [junit]     at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(
>     [junit]     at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(
>     [junit]     at org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(
>     [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(
>     [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(

This message is automatically generated by JIRA.
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message