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

CachingWrapperFilter crashes if you call both bits() and getDocIdSet()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4.1, 2.9
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      CachingWrapperFilter uses only a single cache, so calling bits() after calling getDocIdSet() will result in a type error. Additionally, more code than is necessary is wrapped in the @synchronized blocks.

        Activity

        Hide
        mattj Matt Jones added a comment -

        Patch against 2.4.0 to be more careful about returning from the cache

        Show
        mattj Matt Jones added a comment - Patch against 2.4.0 to be more careful about returning from the cache
        Hide
        mikemccand Michael McCandless added a comment -

        Committed revision 719716.

        Thanks Matt!

        Show
        mikemccand Michael McCandless added a comment - Committed revision 719716. Thanks Matt!
        Hide
        mikemccand Michael McCandless added a comment -

        Reopening for backport to 2.4.1.

        Show
        mikemccand Michael McCandless added a comment - Reopening for backport to 2.4.1.
        Hide
        mikemccand Michael McCandless added a comment -

        Committed revision 745800 on 2.4 branch.

        Show
        mikemccand Michael McCandless added a comment - Committed revision 745800 on 2.4 branch.

          People

          • Assignee:
            mikemccand Michael McCandless
            Reporter:
            mattj Matt Jones
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development