Lucene - Core
  1. Lucene - Core
  2. LUCENE-3581

IndexReader#isCurrent() should return true on a NRT reader if no deletes are applied and only deletes are present in IW

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.5, 4.0-ALPHA
    • Fix Version/s: 4.9, 5.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      I keep forgetting about this, I better open an issue. If you have a NRT reader without deletes applied it should infact return true on IR#isCurrent() if the IW only has deletes in its buffer ie. no documents where updated / added since the NRT reader was opened. Currently if there is a delete coming in we force a reopen which does nothing since deletes are not applied anyway.

        Activity

        Hide
        Michael McCandless added a comment -

        This need not block 3.6.0 right?

        We are returning "false" when we could return "true" from isCurrent, but this just means the app will go through the reopen when it didn't have to...? Ie relatively minor?

        Show
        Michael McCandless added a comment - This need not block 3.6.0 right? We are returning "false" when we could return "true" from isCurrent, but this just means the app will go through the reopen when it didn't have to...? Ie relatively minor?
        Hide
        Mark Miller added a comment -

        Fixing this for 4.1 or should we push it?

        Show
        Mark Miller added a comment - Fixing this for 4.1 or should we push it?
        Hide
        Steve Rowe added a comment -

        Bulk move 4.4 issues to 4.5 and 5.0

        Show
        Steve Rowe added a comment - Bulk move 4.4 issues to 4.5 and 5.0
        Hide
        Uwe Schindler added a comment -

        Move issue to Lucene 4.9.

        Show
        Uwe Schindler added a comment - Move issue to Lucene 4.9.

          People

          • Assignee:
            Simon Willnauer
            Reporter:
            Simon Willnauer
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development