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

No-op retry of a findAndModify upsert of a new document should return null with new=false

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.6.0-rc4
    • 3.6.0-rc1
    • None
    • None
    • Fully Compatible
    • ALL
    • Sharding 2017-11-13

    Description

      If a findAndModify command with upsert=true inserted a new document and new=false, it will return null as the value. Currently, a retry of this command does not return null, like it should.

      Failing retryable_writes_jscore_passthrough tests:

      • find_and_modify4.js
      • find_and_modify_empty_coll.js
      • find_and_modify_empty_update.js
      • find_and_modify_server6226.js

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: