[ 
https://issues.apache.org/jira/browse/LUCENE-978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520286
 ] 

Ning Li commented on LUCENE-978:
--------------------------------

> Agreed. Actually, it also looks like we need to do something similar for 
> FieldsReader/TermVectorsReader too?

That's right. I'll submit a new patch.

> GC resources in TermInfosReader when exception occurs in its constructor
> ------------------------------------------------------------------------
>
>                 Key: LUCENE-978
>                 URL: https://issues.apache.org/jira/browse/LUCENE-978
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Ning Li
>            Priority: Minor
>         Attachments: TermInfosReader.patch
>
>
> I replaced IndexModifier with IndexWriter in test case TestStressIndexing and 
> noticed the test failed from time to time because some .tis file is still 
> open when MockRAMDirectory.close() is called. It turns out it is because .tis 
> file is not closed if an exception occurs in TermInfosReader's constructor.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to