Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6483

Core closed listeners should be called with the same cache key as the one returned by getCoreCacheKey

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.2, 6.0
    • None
    • None
    • New

    Description

      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

      Attachments

        1. LUCENE-6483.patch
          8 kB
          Adrien Grand

        Activity

          People

            jpountz Adrien Grand
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment