Lucene - Core
  1. Lucene - Core
  2. LUCENE-1624

Don't commit an empty segments_N when IW is opened with create=true

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      If IW is opened with create=true, it forcefully commits an empty
      segments_N. But really it should not: if autoCommit is false, nothing
      should be committed until commit or close is explicitly called.

      Spinoff from http://www.nabble.com/no-segments*-file-found:-files:-Error-on-opening-index-td23219520.html

      1. LUCENE-1624.patch
        2 kB
        Michael McCandless

        Activity

        Hide
        Michael McCandless added a comment -

        Attached patch. I plan to commit in a day or so.

        Show
        Michael McCandless added a comment - Attached patch. I plan to commit in a day or so.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development