Lucene - Core
  1. Lucene - Core
  2. LUCENE-4986

NRT reader doesn't see changes after successful IW.tryDeleteDocument

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1, 5.0
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Reported by Reg on the java-user list, subject "TrackingIndexWriter.tryDeleteDocument(IndexReader, int) vs deleteDocuments(Query)":

      When IW.tryDeleteDocument succeeds, it marks the document as deleted in the pending BitVector in ReadersAndLiveDocs, but then when the NRT reader checks if it's still current by calling IW.nrtIsCurrent, we fail to catch changes to the BitVector, resulting in the NRT reader thinking it's current and not reopening.

      1. LUCENE-4986.patch
        14 kB
        Michael McCandless
      2. LUCENE-4986.patch
        6 kB
        Michael McCandless

        Activity

        Shalin Shekhar Mangar made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Shalin Shekhar Mangar made changes -
        Labels lucene-4.3.1-candidate
        Fix Version/s 4.3.1 [ 12324404 ]
        Fix Version/s 4.4 [ 12324323 ]
        Steve Rowe made changes -
        Labels lucene-4.3.1-candidate
        Michael McCandless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Michael McCandless made changes -
        Attachment LUCENE-4986.patch [ 12582319 ]
        Michael McCandless made changes -
        Field Original Value New Value
        Attachment LUCENE-4986.patch [ 12582284 ]
        Michael McCandless created issue -

          People

          • Assignee:
            Michael McCandless
            Reporter:
            Michael McCandless
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development