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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: