Lucene - Core
  1. Lucene - Core
  2. LUCENE-4521

tryDeleteDocument returns true (success) but may fail to write changes to the index on commit

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Spinoff from java-user thread subject "writer.tryDeleteDocument(..) does not delete document".

      1. LUCENE-4521.patch
        2 kB
        Michael McCandless

        Activity

        Hide
        Michael McCandless added a comment -

        Patch w/ test & simple fix ... I'll commit shortly.

        The bug happens if there were no other changes (add/update docs, etc.) done with this writer instance ...

        Show
        Michael McCandless added a comment - Patch w/ test & simple fix ... I'll commit shortly. The bug happens if there were no other changes (add/update docs, etc.) done with this writer instance ...
        Hide
        Michael McCandless added a comment -

        Thanks Ivan!

        Show
        Michael McCandless added a comment - Thanks Ivan!
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Michael McCandless
        http://svn.apache.org/viewvc?view=revision&revision=1404227

        LUCENE-4521: make sure we commit new del file if tryDeleteDocument succeeds but IW has no other pending changes

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Michael McCandless http://svn.apache.org/viewvc?view=revision&revision=1404227 LUCENE-4521 : make sure we commit new del file if tryDeleteDocument succeeds but IW has no other pending changes

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development