You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/05/18 18:21:00 UTC

[jira] [Commented] (LUCENE-6483) Core closed listeners should be called with the same cache key as the one returned by getCoreCacheKey

    [ https://issues.apache.org/jira/browse/LUCENE-6483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14548229#comment-14548229 ] 

ASF subversion and git services commented on LUCENE-6483:
---------------------------------------------------------

Commit 1680049 from [~jpountz] in branch 'dev/trunk'
[ https://svn.apache.org/r1680049 ]

LUCENE-6483: Ensure core closed listeners are called on the same cache key as the reader which has been used to register the listener.

> Core closed listeners should be called with the same cache key as the one returned by getCoreCacheKey
> -----------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-6483
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6483
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>         Attachments: LUCENE-6483.patch
>
>
> Core cache keys are typically used for caching, for instance we use them in the query cache and when uninverting.
> However, since FilterLeafReader delegates addCoreClosedListener by default, these listeners will always be called with the cache key of the wrapper reader. So if you happen to use a filter reader that overrides the core cache key, you are going to try to evict on a different key than the one that you used for caching.
> We should ensure that core closed listeners are always called on the same key as the one returned by #getCoreCacheKey



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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