Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21227

MultiPlanStage::invalidate() should not flag and drop invalidated WorkingSetMembers

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.12, 3.0.8, 3.2.0-rc3
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
    • Fully Compatible
    • QuInt C (11/23/15)

      If a result document buffered inside the MultiPlanStage is invalidated by an update or delete during a yield, this result is dropped from the result set and flagged for review by the KeepMutationsStage:


      However, KeepMutationsStage is always below MultiPlanStage in the query execution tree, which means that the flagged results will never get revisited. As a result, these documents will be absent from the result set.

      In general, concurrently modified results may be dropped from the query result set (see the Concurrency FAQ). However, the system should make a best effort to preserve results. We could do better in this case by simply copying the pre-image of the about-to-be modified document rather than dropping it.

            david.storch@mongodb.com David Storch
            david.storch@mongodb.com David Storch
            0 Vote for this issue
            13 Start watching this issue