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

RUNNER_DEAD on document delete during update by _id or find by _id

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.6.12
    • Affects Version/s: 2.6.9
    • Component/s: Querying
    • None
    • Fully Compatible
    • ALL
    • QuInt C (11/23/15), Query F (02/01/16)

      Given the following scenario:

      1. A document update begins for a {_id: 1234}
      2. An _id entry is found for 1234 and the update yields to fetch the given document from disk
      3. During the yield {_id: 1234} is deleted by another operation
      4. The update operation fails as RUNNER_DEAD, returning an error

      The update should probably return successful with nupdated: 0 rather than error out. Looks like this is an issue for 2.6 only.

      https://github.com/mongodb/mongo/blob/v2.6/src/mongo/db/query/idhack_runner.cpp#L234-L236

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: