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

FilterIndexReader in trunk does not implement getSequentialSubReaders() correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0-ALPHA
    • None
    • None
    • None
    • New, Patch Available

    Description

      Since LUCENE-2459, getSequentialSubReaders() in FilterIndexReader returns null, so it returns an atomic reader. But If you call then any of the enum methods, it throws Exception because the underlying reader is not atomic.

      We should move the null-returning method to SlowMultiReaderWrapper and fix FilterIndexReader's default to return in.getSequentialSubReaders(). Ideally an implementation must of course also wrap the sub-readers.

      If we change this we have to look into other Impls like the MultiPassIndexSplitter if we need to add atomicity.

      Attachments

        1. LUCENE-2769.patch
          3 kB
          Robert Muir
        2. LUCENE-2769.patch
          3 kB
          Robert Muir
        3. LUCENE-2769_norms.patch
          13 kB
          Robert Muir
        4. LUCENE-2769_norms.patch
          16 kB
          Robert Muir
        5. LUCENE-2769_norms.patch
          41 kB
          Robert Muir

        Issue Links

          Activity

            People

              Unassigned Unassigned
              uschindler Uwe Schindler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: