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

        Michael McCandless created issue -
        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.
        Michael McCandless made changes -
        Field Original Value New Value
        Attachment LUCENE-1624.patch [ 12406822 ]
        Michael McCandless committed 770605 (1 file)
        Reviews: none

        LUCENE-1624: don't write a new empty commit when create=true and autoCommit=false on creating IndexWriter, unless dir has no index yet

        Michael McCandless committed 770615 (4 files)
        Reviews: none

        LUCENE-1624: don't write a new empty commit when create=true and autoCommit=false on creating IndexWriter, unless dir has no index yet

        Michael McCandless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mark Miller made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12462205 ] Default workflow, editable Closed status [ 12563202 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12563202 ] jira [ 12584146 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development