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

Ensure SR#getSementInfo() returns snapshot

    Details

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

      Description

      The SegmentCommitInfo passed to the segment reader is mutated concurrently.
      An instance obtained from SR#getSegmentInfo() might return wrong delete counts
      or generation ids. This ensures that the SR will use a clone internally while stil
      maintaining the original SI since it's needed inside IW for maintainance like
      accessing pooled readers etc.

        Attachments

        1. LUCENE-8334.patch
          9 kB
          Simon Willnauer
        2. LUCENE-8334.patch
          9 kB
          Simon Willnauer

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              simonw Simon Willnauer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: