lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ning Li (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-978) GC resources in TermInfosReader when exception occurs in its constructor
Date Thu, 16 Aug 2007 18:51:30 GMT

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

Ning Li updated LUCENE-978:
---------------------------

    Attachment: Readers.patch

Similar fixes are added for FieldsReader and TermVectorsReader as well.

> 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: Readers.patch, 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message