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

Steve Rowe edited comment on SOLR-10907 at 6/23/17 6:05 PM:
------------------------------------------------------------

My Jenkins found a reproducing {{TestExpandComponent.testExpand()}} failure 
that {{git bisect}} blames on commit {{55b0227d8cc}} on this issue:

{noformat}
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestExpandComponent 
-Dtests.method=testExpand -Dtests.seed=6456ACC32D0BB87 -Dtests.slow=true 
-Dtests.locale=lt -Dtests.timezone=Europe/Mariehamn -Dtests.asserts=true 
-Dtests.file.encoding=UTF-8
   [junit4] ERROR   0.49s J5  | TestExpandComponent.testExpand <<<
   [junit4]    > Throwable #1: java.lang.RuntimeException: Exception during 
query
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([6456ACC32D0BB87:9A1D236D88875B90]:0)
   [junit4]    >        at 
org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:872)
   [junit4]    >        at 
org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:839)
   [junit4]    >        at 
org.apache.solr.handler.component.TestExpandComponent._testExpand(TestExpandComponent.java:120)
   [junit4]    >        at 
org.apache.solr.handler.component.TestExpandComponent.testExpand(TestExpandComponent.java:60)
   [junit4]    >        at java.lang.Thread.run(Thread.java:745)
   [junit4]    > Caused by: org.apache.lucene.store.AlreadyClosedException: 
this IndexReader is closed
   [junit4]    >        at 
org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:268)
   [junit4]    >        at 
org.apache.lucene.index.IndexReader.registerParentReader(IndexReader.java:140)
   [junit4]    >        at 
org.apache.lucene.index.FilterLeafReader.<init>(FilterLeafReader.java:300)
   [junit4]    >        at 
org.apache.solr.handler.component.ExpandComponent$ReaderWrapper.<init>(ExpandComponent.java:782)
   [junit4]    >        at 
org.apache.solr.handler.component.ExpandComponent.process(ExpandComponent.java:394)
   [junit4]    >        at 
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:295)
   [junit4]    >        at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:178)
   [junit4]    >        at 
org.apache.solr.core.SolrCore.execute(SolrCore.java:2473)
   [junit4]    >        at 
org.apache.solr.util.TestHarness.query(TestHarness.java:337)
   [junit4]    >        at 
org.apache.solr.util.TestHarness.query(TestHarness.java:319)
   [junit4]    >        at 
org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:846)
{noformat}


was (Author: steve_rowe):
My Jenkins found a reproducing {{TestExpandComponent.testExpand()}} that {{git 
bisect}} blames on commit {{55b0227d8cc}} on this issue:

{noformat}
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestExpandComponent 
-Dtests.method=testExpand -Dtests.seed=6456ACC32D0BB87 -Dtests.slow=true 
-Dtests.locale=lt -Dtests.timezone=Europe/Mariehamn -Dtests.asserts=true 
-Dtests.file.encoding=UTF-8
   [junit4] ERROR   0.49s J5  | TestExpandComponent.testExpand <<<
   [junit4]    > Throwable #1: java.lang.RuntimeException: Exception during 
query
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([6456ACC32D0BB87:9A1D236D88875B90]:0)
   [junit4]    >        at 
org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:872)
   [junit4]    >        at 
org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:839)
   [junit4]    >        at 
org.apache.solr.handler.component.TestExpandComponent._testExpand(TestExpandComponent.java:120)
   [junit4]    >        at 
org.apache.solr.handler.component.TestExpandComponent.testExpand(TestExpandComponent.java:60)
   [junit4]    >        at java.lang.Thread.run(Thread.java:745)
   [junit4]    > Caused by: org.apache.lucene.store.AlreadyClosedException: 
this IndexReader is closed
   [junit4]    >        at 
org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:268)
   [junit4]    >        at 
org.apache.lucene.index.IndexReader.registerParentReader(IndexReader.java:140)
   [junit4]    >        at 
org.apache.lucene.index.FilterLeafReader.<init>(FilterLeafReader.java:300)
   [junit4]    >        at 
org.apache.solr.handler.component.ExpandComponent$ReaderWrapper.<init>(ExpandComponent.java:782)
   [junit4]    >        at 
org.apache.solr.handler.component.ExpandComponent.process(ExpandComponent.java:394)
   [junit4]    >        at 
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:295)
   [junit4]    >        at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:178)
   [junit4]    >        at 
org.apache.solr.core.SolrCore.execute(SolrCore.java:2473)
   [junit4]    >        at 
org.apache.solr.util.TestHarness.query(TestHarness.java:337)
   [junit4]    >        at 
org.apache.solr.util.TestHarness.query(TestHarness.java:319)
   [junit4]    >        at 
org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:846)
{noformat}

> fix Resource Leak warning in ExpandComponent
> --------------------------------------------
>
>                 Key: SOLR-10907
>                 URL: https://issues.apache.org/jira/browse/SOLR-10907
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: clients - java
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
>            Priority: Minor
>         Attachments: SOLR-10907.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to