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

performSingleUpdateOpWithDupKeyRetry loops indefinitely

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.7
    • Component/s: Querying, Write Ops
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      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 } )
    • Sprint:
      Query 2018-12-17
    • Linked BF Score:
      50

      Description

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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: