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

DocValuesDocIdSet is not cacheable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.10
    • 4.9.1, 4.10.1, 5.0, 6.0
    • None
    • None
    • New

    Description

      This DocIdSet claims it is cacheable although bad things could happen if it was cached since it is not thread-safe and keeps handles to open files.

      The fix is simple, especially given that this doc id set is cheap to create. But I'm wondering if there is a way we could protect ourselves from such bugs in the future.

      Attachments

        1. LUCENE-5922.patch
          3 kB
          Adrien Grand

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: