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

FrozenBufferedUpdates#apply*Deletes is incorrect when index sorting is enabled

Details

    • Task
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 7.5, 8.0
    • None
    • None
    • New

    Description

      This was reported by Vish Ramachandran at https://markmail.org/message/w27h7n2isb5eogos. When deleting by term or query, we record the term/query that is deleted and the current max doc id. Deletes are later applied on flush by FrozenBufferedUpdates#apply*Deletes. Unfortunately, this doesn't work when index sorting is enabled since documents are renumbered between the time that the current max doc id is computed and the time that deletes are applied.

      Attachments

        1. LUCENE-8466.patch
          5 kB
          Jim Ferenczi

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: