Lucene - Core
  1. Lucene - Core
  2. LUCENE-2046

IndexReader.isCurrent incorrectly returns false after writer.prepareCommit has been called

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.3, 3.0
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Spinoff from thread "2 phase commit with external data" on java-user.

      The IndexReader should not see the index as changed, after a prepareCommit has been called but before commit is called.

      1. LUCENE-2046.patch
        3 kB
        Michael McCandless

        Activity

        Hide
        Michael McCandless added a comment -

        Attached patch. Simple fix.

        Show
        Michael McCandless added a comment - Attached patch. Simple fix.
        Hide
        Michael McCandless added a comment -

        Thanks Peter!

        Show
        Michael McCandless added a comment - Thanks Peter!
        Hide
        Michael McCandless added a comment -

        backport

        Show
        Michael McCandless added a comment - backport

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development