Lucene - Core
  1. Lucene - Core
  2. LUCENE-3028

IW.getReader() returns inconsistent reader on RT Branch

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Realtime Branch
    • Fix Version/s: Realtime Branch
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      I extended the testcase TestRollingUpdates#testUpdateSameDoc to pull a NRT reader after each update and asserted that is always sees only one document. Yet, this fails with current branch since there is a problem in how we flush in the getReader() case. What happens here is that we flush all threads and then release the lock (letting other flushes which came in after we entered the flushAllThread context, continue) so that we could concurrently get a new segment that transports global deletes without the corresponding add. They sneak in while we continue to open the NRT reader which in turn sees inconsistent results.

      I will upload a patch soon

      1. realtime-1.txt
        47 kB
        selckin
      2. LUCENE-3028.patch
        22 kB
        Simon Willnauer
      3. LUCENE-3028.patch
        22 kB
        Simon Willnauer

        Issue Links

          Activity

          Simon Willnauer made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          selckin made changes -
          Attachment realtime-1.txt [ 12476369 ]
          Simon Willnauer made changes -
          Link This issue blocks LUCENE-2324 [ LUCENE-2324 ]
          Simon Willnauer made changes -
          Attachment LUCENE-3028.patch [ 12476325 ]
          Simon Willnauer made changes -
          Attachment LUCENE-3028.patch [ 12476322 ]
          Simon Willnauer made changes -
          Attachment LUCENE-3028.patch [ 12476321 ]
          Simon Willnauer made changes -
          Comment [ here is a first patch ]
          Simon Willnauer made changes -
          Field Original Value New Value
          Attachment LUCENE-3028.patch [ 12476321 ]
          Simon Willnauer created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development