lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-3476) SearcherManager misses to close IR if manager is closed during reopen
Date Fri, 30 Sep 2011 19:51:45 GMT

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

Simon Willnauer updated LUCENE-3476:
------------------------------------

    Attachment: LUCENE-3476.patch

there is no need to make this non-blocking though I agree from a perf perspective. I personally
don't like this unchecked exception in swapSearcher but since its internal that's ok. I had
to make close synced too to make sure we can call close more than once (this is what the interface
says in its jdocs).  
                
> SearcherManager misses to close IR if manager is closed during reopen
> ---------------------------------------------------------------------
>
>                 Key: LUCENE-3476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3476
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: core/store
>    Affects Versions: 3.5, 4.0
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>             Fix For: 3.5, 4.0
>
>         Attachments: LUCENE-3476.patch, LUCENE-3476.patch
>
>
> if we close SM while there is a thread calling maybReopen() and swapSearcher throws already
closed exception we miss to close the searcher / reader.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message