You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Commit Tag Bot (JIRA)" <ji...@apache.org> on 2012/12/01 14:49:58 UTC
[jira] [Commented] (LUCENE-4566) SearcherManager.afterRefresh()
issues
[ https://issues.apache.org/jira/browse/LUCENE-4566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507963#comment-13507963 ]
Commit Tag Bot commented on LUCENE-4566:
----------------------------------------
[trunk commit] Michael McCandless
http://svn.apache.org/viewvc?view=revision&revision=1415996
LUCENE-4566: add RefreshListener to Reference/Searcher/NRTManager
> SearcherManager.afterRefresh() issues
> -------------------------------------
>
> Key: LUCENE-4566
> URL: https://issues.apache.org/jira/browse/LUCENE-4566
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: selckin
> Assignee: Michael McCandless
> Priority: Minor
> Attachments: LUCENE-4566-double-listeners.patch, LUCENE-4566.patch, LUCENE-4566.patch
>
>
> 1) ReferenceManager.doMaybeRefresh seems to call afterRefresh even if it didn't refresh/swap, (when newReference == null)
> 2) It would be nice if users were allowed to override SearcherManager.afterRefresh() to get notified when a new searcher is in action.
> But SearcherManager and ReaderManager are final, while NRTManager is not.
> The only way to currently hook into when a new searched is created is using the factory, but if you wish to do some async task then, there are no guarantees that acquire() will return the new searcher, so you have to pass it around and incRef manually. While if allowed to hook into afterRefresh you can just rely on acquire() & existing infra you have around it to give you the latest one.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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