[ 
https://issues.apache.org/jira/browse/SOLR-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061540#comment-13061540
 ] 

Steven Rowe commented on SOLR-2500:
-----------------------------------

On Windows 7 using Oracle JDK 1.6.0_21, {{TestSolrProperties#testProperties()}} 
is consistently failing for me, both individually and with all Solr tests, and 
Ant and in IntelliJ:

{quote}
java.lang.AssertionError: Failed to delete 
C:\svn\lucene\dev\trunk\solr\build\tests\solr\shared\solr-persist.xml
        at org.junit.Assert.fail(Assert.java:91)
        at org.junit.Assert.assertTrue(Assert.java:43)
        at 
org.apache.solr.client.solrj.embedded.TestSolrProperties.tearDown(TestSolrProperties.java:107)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:37)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
        at 
org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1430)
        at 
org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1348)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
{quote}

The failure is in TestSolrProperties.tearDown():

{code:java}
107: assertTrue("Failed to delete "+persistedFile, persistedFile.delete());
{code}


> TestSolrProperties 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
>            Assignee: Doron Cohen
>             Fix For: 3.2, 4.0
>
>         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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to