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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.6.9
    • Fix Version/s: 2.6.12
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      QuInt C (11/23/15), Query F (02/01/16)

      Description

      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

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: