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

SegmentInfos shouldn't blindly increment version on commit

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1, 4.0-ALPHA
    • core/index
    • None
    • New

    Description

      SegmentInfos currently increments version on the assumption that there are always changes.

      But, both DirReader and IW are more careful about tracking whether there are changes. DirReader has hasChanges and IW has changeCount. I think these classes should notify the SIS when there are in fact changes; this will fix the case Simon hit on fixing LUCENE-2082 when the NRT reader thought there were changes, but in fact there weren't because IW simply committed the exact SIS it already had.

      Attachments

        1. LUCENE-2805_3x.patch
          12 kB
          Simon Willnauer
        2. LUCENE-2805.patch
          11 kB
          Simon Willnauer
        3. LUCENE-2805.patch
          6 kB
          Simon Willnauer
        4. LUCENE-2805.patch
          3 kB
          Michael McCandless

        Issue Links

          Activity

            People

              simonw Simon Willnauer
              mikemccand Michael McCandless
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: