[jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
[ https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036462#comment-13036462 ] Robert Muir commented on SOLR-2500: --- +1 to commit! Thanks Doron! > TestSolrCoreProperties sometimes fails with "no such core: core0" > - > > Key: SOLR-2500 > URL: https://issues.apache.org/jira/browse/SOLR-2500 > Project: Solr > Issue Type: Bug >Affects Versions: 4.0 >Reporter: Robert Muir > Attachments: SOLR-2500.patch, 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(EmbeddedSolrServer.java:118) > [junit] at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > [junit] at > org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
[ https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036454#comment-13036454 ] Steven Rowe commented on SOLR-2500: --- I ran the TestSolrProperties test case alone, without the patch, from both Maven and IntelliJ, and I get the same behavior: it passes once, then fails on every successive attempt, unless "clean" is performed first. With the patch applied, the test passes under both IntelliJ and Maven, regardless of whether "clean" is performed first. > TestSolrCoreProperties sometimes fails with "no such core: core0" > - > > Key: SOLR-2500 > URL: https://issues.apache.org/jira/browse/SOLR-2500 > Project: Solr > Issue Type: Bug >Affects Versions: 4.0 >Reporter: Robert Muir > Attachments: SOLR-2500.patch, 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(EmbeddedSolrServer.java:118) > [junit] at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > [junit] at > org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
[ https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036338#comment-13036338 ] Robert Muir commented on SOLR-2500: --- ok, so really the right way to fix this I think, is to ensure the test is only working from its private dir and copies stuff it needs in there. Then this will work fine from the IDE too (the patch only causes ant to recopy a clean version the next time you run 'test') > TestSolrCoreProperties sometimes fails with "no such core: core0" > - > > Key: SOLR-2500 > URL: https://issues.apache.org/jira/browse/SOLR-2500 > 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(EmbeddedSolrServer.java:118) > [junit] at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > [junit] at > org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
[ https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036333#comment-13036333 ] 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: {code} INFO: pwd: /opt/code/lusolr/. 2011-05-19 20.52.58 org.apache.solr.core.CoreContainer INFO: New CoreContainer 746169063 2011-05-19 20.52.58 org.apache.solr.core.SolrResourceLoader INFO: Solr home set to '/opt/code/lusolr/solr/build/tests/solr/shared/' 2011-05-19 20.52.58 org.apache.solr.core.SolrResourceLoader {code} This causes a problem when it comes time to delete later: {code} WARNING: WARNING: best effort to remove /opt/code/lusolr/solr/shared/data FAILED ! {code} 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: https://issues.apache.org/jira/browse/SOLR-2500 > 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(EmbeddedSolrServer.java:118) > [junit] at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > [junit] at > org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
[ https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036334#comment-13036334 ] Michael McCandless commented on SOLR-2500: -- Fix works for me!! > TestSolrCoreProperties sometimes fails with "no such core: core0" > - > > Key: SOLR-2500 > URL: https://issues.apache.org/jira/browse/SOLR-2500 > 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(EmbeddedSolrServer.java:118) > [junit] at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > [junit] at > org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
[ https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036332#comment-13036332 ] Robert Muir commented on SOLR-2500: --- Its also worth mentioning this patch won't help eclipse at all, its only a workaround for ant at the moment. > TestSolrCoreProperties sometimes fails with "no such core: core0" > - > > Key: SOLR-2500 > URL: https://issues.apache.org/jira/browse/SOLR-2500 > 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(EmbeddedSolrServer.java:118) > [junit] at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > [junit] at > org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
[ https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036319#comment-13036319 ] Robert Muir commented on SOLR-2500: --- OK, i think you might be right... TestSolrProperties is the one that just failed for me. I'll look into this test now (though I'm still confused about TestSolrCoreProperties but i'll let that be) > TestSolrCoreProperties sometimes fails with "no such core: core0" > - > > Key: SOLR-2500 > URL: https://issues.apache.org/jira/browse/SOLR-2500 > Project: Solr > Issue Type: Bug >Affects Versions: 4.0 >Reporter: Robert Muir > Attachments: 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(EmbeddedSolrServer.java:118) > [junit] at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > [junit] at > org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
[ https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036318#comment-13036318 ] Michael McCandless commented on SOLR-2500: -- For me, it's TestSolrProperties that reliably fails it's it's been run before. Ie, it passes on first run after "ant clean" but then fails thereafter. TestSolrCoreProperties seems to run fine. (Fedora 13). > TestSolrCoreProperties sometimes fails with "no such core: core0" > - > > Key: SOLR-2500 > URL: https://issues.apache.org/jira/browse/SOLR-2500 > Project: Solr > Issue Type: Bug >Affects Versions: 4.0 >Reporter: Robert Muir > Attachments: 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(EmbeddedSolrServer.java:118) > [junit] at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > [junit] at > org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
[ https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036300#comment-13036300 ] Doron Cohen commented on SOLR-2500: --- Oops just noticed I was testing all this time TestSolrProperties and not TestSolrCoreProperties, and, because the error message was the same as in the issue description *"No such core: core0"* I was sure that this is the same test... Now this is confusing... Hmmm.. the original exception reported above is [junit] at org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) So perhaps I was working on the correct bug after all and just the JIRA issue title is inaccurate? Or I need to call it a day... :) Anyhow, TestSolrProperties consistently behaves as I described here, while TestSolrCoreProperties consistently passes (when ran in standalone mode). > TestSolrCoreProperties sometimes fails with "no such core: core0" > - > > Key: SOLR-2500 > URL: https://issues.apache.org/jira/browse/SOLR-2500 > Project: Solr > Issue Type: Bug >Affects Versions: 4.0 >Reporter: Robert Muir > Attachments: 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(EmbeddedSolrServer.java:118) > [junit] at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > [junit] at > org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
[ https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036288#comment-13036288 ] Doron Cohen commented on SOLR-2500: --- FWIW, also the first clean run would fail if test's tearDown() is modified like this: {noformat} -persistedFile.delete(); +assertTrue("could not delete "+persistedFile, persistedFile.delete()); {noformat} For some reason it fails to remove that file - in both Linux and Windows. > TestSolrCoreProperties sometimes fails with "no such core: core0" > - > > Key: SOLR-2500 > URL: https://issues.apache.org/jira/browse/SOLR-2500 > Project: Solr > Issue Type: Bug >Affects Versions: 4.0 >Reporter: Robert Muir > Attachments: 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(EmbeddedSolrServer.java:118) > [junit] at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > [junit] at > org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
[ https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036243#comment-13036243 ] Robert Muir commented on SOLR-2500: --- {quote} In Eclipse, after cleaning the project the test passes, and then start failing in all successive runs. {quote} FYI This is the behavior I've noticed when running the test from Ant also... a 'clean' seems to workaround the issue... > TestSolrCoreProperties sometimes fails with "no such core: core0" > - > > Key: SOLR-2500 > URL: https://issues.apache.org/jira/browse/SOLR-2500 > Project: Solr > Issue Type: Bug >Affects Versions: 4.0 >Reporter: Robert Muir > > [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(EmbeddedSolrServer.java:118) > [junit] at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > [junit] at > org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
[ https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036242#comment-13036242 ] Doron Cohen commented on SOLR-2500: --- >From Eclipse (XP), passed at 1st attempt, failed at the 2nd! I am not familiar with this part of the code so it would be too much work to track it all the way myself, but I think I can now provide sufficient information for solving it. In Eclipse, after cleaning the project the test passes, and then start failing in all successive runs. So I assume when you run it isolated you also do clean, which covers Eclipse's clean (and more). I tracked the content of the cleaned relevant dir before and after the test - it is (trunk/)bin/solr - there's only one file that differs between the runs - this is bin/solr/shared/solr.xml. Not sure if this is a bug in the test not cleaning after itself or a bug in the code that reads the configuration... I'll attach here the two file so that you can compare them. > TestSolrCoreProperties sometimes fails with "no such core: core0" > - > > Key: SOLR-2500 > URL: https://issues.apache.org/jira/browse/SOLR-2500 > Project: Solr > Issue Type: Bug >Affects Versions: 4.0 >Reporter: Robert Muir > > [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(EmbeddedSolrServer.java:118) > [junit] at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > [junit] at > org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2500) TestSolrCoreProperties sometimes fails with "no such core: core0"
[ https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13035070#comment-13035070 ] Uwe Schindler commented on SOLR-2500: - I get crazy with that test... It passes isolated, but fails on my machine every run together with other tests. > TestSolrCoreProperties sometimes fails with "no such core: core0" > - > > Key: SOLR-2500 > URL: https://issues.apache.org/jira/browse/SOLR-2500 > Project: Solr > Issue Type: Bug >Affects Versions: 4.0 >Reporter: Robert Muir > > [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(EmbeddedSolrServer.java:118) > [junit] at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > [junit] at > org.apache.solr.client.solrj.embedded.TestSolrProperties.testProperties(TestSolrProperties.java:128) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1260) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org