You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Sami Siren (Created) (JIRA)" <ji...@apache.org> on 2011/11/02 14:47:32 UTC

[jira] [Created] (SOLR-2870) Test failure in SolrExampleJettyTest

Test failure in SolrExampleJettyTest
------------------------------------

                 Key: SOLR-2870
                 URL: https://issues.apache.org/jira/browse/SOLR-2870
             Project: Solr
          Issue Type: Bug
         Environment: r1196292 (trunk)

            Reporter: Sami Siren


I saw this non reproducible error today once. I also saw similar error with SolrExampleEmbeddedTest.

{code}
   <error message="java.lang.AssertionError: directory of test was not closed, opened from: org.apache.solr.core.MockDirectoryFactory.create(MockDirectoryFactory.java:33)" type="java.lang.RuntimeException">java.lang.RuntimeException: java.lang.AssertionError: directory of test was not closed, opened from: org.apache.solr.core.MockDirectoryFactory.create(MockDirectoryFactory.java:33)
        at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:474)
        at org.apache.lucene.util.LuceneTestCase.checkResourcesAfterClass(LuceneTestCase.java:532)
        at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:442)
</error>

{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2870) Test failure in SolrExampleJettyTest

Posted by "Sami Siren (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13142961#comment-13142961 ] 

Sami Siren commented on SOLR-2870:
----------------------------------

This just occured again, this time with SolrExampleBinaryTest:
{code}
SEVERE: java.lang.RuntimeException: MockDirectoryWrapper: cannot close: there are still open files: {_3f_1.skp=1, _3
f_1.pos=1, _3f_1.doc=1, _3f_1.frq=1}
{code}

{code}
03/11/2011 18:19:50 org.apache.solr.common.SolrException log
SEVERE: java.util.concurrent.RejectedExecutionException
        at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:1768)
        at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:767)
        at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:658)
        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:92)
        at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:603)
        at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1228)
        at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1002)
        at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:339)
        at org.apache.solr.update.CommitTracker.run(CommitTracker.java:184)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
{code}
                
> Test failure in SolrExampleJettyTest
> ------------------------------------
>
>                 Key: SOLR-2870
>                 URL: https://issues.apache.org/jira/browse/SOLR-2870
>             Project: Solr
>          Issue Type: Bug
>         Environment: r1196292 (trunk)
>            Reporter: Sami Siren
>         Attachments: TEST-org.apache.solr.client.solrj.embedded.SolrExampleJettyTest.xml
>
>
> I saw this non reproducible error today once. I also saw similar error with SolrExampleEmbeddedTest.
> {code}
>    <error message="java.lang.AssertionError: directory of test was not closed, opened from: org.apache.solr.core.MockDirectoryFactory.create(MockDirectoryFactory.java:33)" type="java.lang.RuntimeException">java.lang.RuntimeException: java.lang.AssertionError: directory of test was not closed, opened from: org.apache.solr.core.MockDirectoryFactory.create(MockDirectoryFactory.java:33)
>         at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:474)
>         at org.apache.lucene.util.LuceneTestCase.checkResourcesAfterClass(LuceneTestCase.java:532)
>         at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:442)
> </error>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2870) Test failure in SolrExampleJettyTest

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143035#comment-13143035 ] 

Robert Muir commented on SOLR-2870:
-----------------------------------

I don't know totally whats going on here,

but it looks from the logs/errors like some kind of battle between these two things happening at once:
# the shutdown of the core and closing the underlying Directory
# opening of a new reader against that same Directory after the commit

                
> Test failure in SolrExampleJettyTest
> ------------------------------------
>
>                 Key: SOLR-2870
>                 URL: https://issues.apache.org/jira/browse/SOLR-2870
>             Project: Solr
>          Issue Type: Bug
>         Environment: r1196292 (trunk)
>            Reporter: Sami Siren
>         Attachments: TEST-org.apache.solr.client.solrj.embedded.SolrExampleJettyTest.xml
>
>
> I saw this non reproducible error today once. I also saw similar error with SolrExampleEmbeddedTest.
> {code}
>    <error message="java.lang.AssertionError: directory of test was not closed, opened from: org.apache.solr.core.MockDirectoryFactory.create(MockDirectoryFactory.java:33)" type="java.lang.RuntimeException">java.lang.RuntimeException: java.lang.AssertionError: directory of test was not closed, opened from: org.apache.solr.core.MockDirectoryFactory.create(MockDirectoryFactory.java:33)
>         at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:474)
>         at org.apache.lucene.util.LuceneTestCase.checkResourcesAfterClass(LuceneTestCase.java:532)
>         at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:442)
> </error>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2870) Test failure in SolrExampleJettyTest

Posted by "Sami Siren (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sami Siren updated SOLR-2870:
-----------------------------

    Attachment: TEST-org.apache.solr.client.solrj.embedded.SolrExampleJettyTest.xml
    
> Test failure in SolrExampleJettyTest
> ------------------------------------
>
>                 Key: SOLR-2870
>                 URL: https://issues.apache.org/jira/browse/SOLR-2870
>             Project: Solr
>          Issue Type: Bug
>         Environment: r1196292 (trunk)
>            Reporter: Sami Siren
>         Attachments: TEST-org.apache.solr.client.solrj.embedded.SolrExampleJettyTest.xml
>
>
> I saw this non reproducible error today once. I also saw similar error with SolrExampleEmbeddedTest.
> {code}
>    <error message="java.lang.AssertionError: directory of test was not closed, opened from: org.apache.solr.core.MockDirectoryFactory.create(MockDirectoryFactory.java:33)" type="java.lang.RuntimeException">java.lang.RuntimeException: java.lang.AssertionError: directory of test was not closed, opened from: org.apache.solr.core.MockDirectoryFactory.create(MockDirectoryFactory.java:33)
>         at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:474)
>         at org.apache.lucene.util.LuceneTestCase.checkResourcesAfterClass(LuceneTestCase.java:532)
>         at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:442)
> </error>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Resolved] (SOLR-2870) Test failure in SolrExampleJettyTest

Posted by "Sami Siren (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sami Siren resolved SOLR-2870.
------------------------------

    Resolution: Cannot Reproduce

No sight of this problem anymore (r1199627). I think that whatever caused it has been fixed.
                
> Test failure in SolrExampleJettyTest
> ------------------------------------
>
>                 Key: SOLR-2870
>                 URL: https://issues.apache.org/jira/browse/SOLR-2870
>             Project: Solr
>          Issue Type: Bug
>         Environment: r1196292 (trunk)
>            Reporter: Sami Siren
>         Attachments: TEST-org.apache.solr.client.solrj.embedded.SolrExampleJettyTest.xml
>
>
> I saw this non reproducible error today once. I also saw similar error with SolrExampleEmbeddedTest.
> {code}
>    <error message="java.lang.AssertionError: directory of test was not closed, opened from: org.apache.solr.core.MockDirectoryFactory.create(MockDirectoryFactory.java:33)" type="java.lang.RuntimeException">java.lang.RuntimeException: java.lang.AssertionError: directory of test was not closed, opened from: org.apache.solr.core.MockDirectoryFactory.create(MockDirectoryFactory.java:33)
>         at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:474)
>         at org.apache.lucene.util.LuceneTestCase.checkResourcesAfterClass(LuceneTestCase.java:532)
>         at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:442)
> </error>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2870) Test failure in SolrExampleJettyTest

Posted by "Sami Siren (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146116#comment-13146116 ] 

Sami Siren commented on SOLR-2870:
----------------------------------

little update: This problem seems to be a lot more rare in current trunk than before, earlier I was able to see this once per less than 100 runs of solrj tests. Now (r1198632) I have not yet seen this occur again (currently going at around 1k runs).
                
> Test failure in SolrExampleJettyTest
> ------------------------------------
>
>                 Key: SOLR-2870
>                 URL: https://issues.apache.org/jira/browse/SOLR-2870
>             Project: Solr
>          Issue Type: Bug
>         Environment: r1196292 (trunk)
>            Reporter: Sami Siren
>         Attachments: TEST-org.apache.solr.client.solrj.embedded.SolrExampleJettyTest.xml
>
>
> I saw this non reproducible error today once. I also saw similar error with SolrExampleEmbeddedTest.
> {code}
>    <error message="java.lang.AssertionError: directory of test was not closed, opened from: org.apache.solr.core.MockDirectoryFactory.create(MockDirectoryFactory.java:33)" type="java.lang.RuntimeException">java.lang.RuntimeException: java.lang.AssertionError: directory of test was not closed, opened from: org.apache.solr.core.MockDirectoryFactory.create(MockDirectoryFactory.java:33)
>         at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:474)
>         at org.apache.lucene.util.LuceneTestCase.checkResourcesAfterClass(LuceneTestCase.java:532)
>         at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:442)
> </error>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org