[
https://issues.apache.org/jira/browse/LUCENE-5262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13791127#comment-13791127
]
ASF subversion and git services commented on LUCENE-5262:
---------------------------------------------------------
Commit 1530845 from [~rcmuir] in branch 'dev/branches/lucene_solr_4_5'
[ https://svn.apache.org/r1530845 ]
LUCENE-4998, LUCENE-5242, LUCENE-5254, LUCENE-5262, LUCENE-5263, LUCENE-5264:
svn merge -c 1522723 -c 1525896 -c 1529136 -c 1529141 -c 1530063 -c 1530416 -c
1530657
> StandardDirectoryReader should decRef readers on exception, not close them
> --------------------------------------------------------------------------
>
> Key: LUCENE-5262
> URL: https://issues.apache.org/jira/browse/LUCENE-5262
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/index
> Reporter: Shai Erera
> Assignee: Shai Erera
> Fix For: 4.6, 5.0
>
> Attachments: LUCENE-5262.patch
>
>
> I've hit this while debugging a test, and was able to reproduce with a simple
> testcase. StandardDirectoryReader.open (nrt) calls IOUtils.close() on hitting
> an exception from RLD.getReadOnlyClone. But this is wrong, since if two
> attempts are made to obtain an NRT reader, and both of them fail, the readers
> that were closed on the first time are no longer closed, since their "closed"
> member is true. It should instead decRef() them. I'll upload a testcase and
> fix shortly.
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]