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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.0-rc4
    • Affects Version/s: 3.6.0-rc1
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Sharding 2017-11-13
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Kaloian Manassiev
            Reporter:
            Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: