You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/03/16 05:47:00 UTC
[jira] [Updated] (LUCENE-5351) DirectoryReader#close can throw
AlreadyClosedException if it's and NRT reader
[ https://issues.apache.org/jira/browse/LUCENE-5351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Smiley updated LUCENE-5351:
---------------------------------
Fix Version/s: (was: 4.7)
4.8
> DirectoryReader#close can throw AlreadyClosedException if it's and NRT reader
> -----------------------------------------------------------------------------
>
> Key: LUCENE-5351
> URL: https://issues.apache.org/jira/browse/LUCENE-5351
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/index
> Affects Versions: 4.6
> Reporter: Simon Willnauer
> Assignee: Simon Willnauer
> Fix For: 4.8, 5.0
>
> Attachments: LUCENE-5351.patch
>
>
> in StandartDirectoryReader#doClose we do this:
> {noformat}
> if (writer != null) {
> // Since we just closed, writer may now be able to
> // delete unused files:
> writer.deletePendingFiles();
> }
> {noformat}
> which can throw AlreadyClosedException from the directory if the Direcotory has already closed. To me this looks like a bug and we should catch this exception from the directory.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org