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

performSingleUpdateOpWithDupKeyRetry loops indefinitely

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical - P2 Critical - P2
    • 4.1.7
    • None
    • Querying, Write Ops
    • None
    • Fully Compatible
    • ALL
    • Hide

      db.testColl.createIndex({ x: 1 }, { unique: true })
      db.testColl.insert({_id: 1, 'a': 12345 });
      db.testColl.update({ x: 3 }, {}, { upsert: true } )

      Show
      db.testColl.createIndex({ x: 1 }, { unique: true }) db.testColl.insert({_id: 1, 'a': 12345 }); db.testColl.update({ x: 3 }, {}, { upsert: true } )
    • Query 2018-12-17
    • 50

    Description

      UpdateStage::shouldRetryDuplicateKeyException should not return true for the replacement style upserts. See the repro.

      Attachments

        Activity

          People

            james.wahlin@mongodb.com James Wahlin
            martin.neupauer@mongodb.com Martin Neupauer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: