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

performSingleUpdateOpWithDupKeyRetry loops indefinitely

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 4.1.7
    • Affects Version/s: None
    • Component/s: 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

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

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

              Created:
              Updated:
              Resolved: