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

$set issue: have conflicting mods in update

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • 2.4.1
    • Querying
    • None
    • x86_64 GNU/Linux
    • Linux
    • Hide

      Mongo > db.test1.insert(

      { a : 1 }

      )
      Mongo > db.test1.update(

      { a: 1}

      , {$set: { 'b.c': 1, 'b.c.a': 1 }})
      have conflicting mods in update

      Show
      Mongo > db.test1.insert( { a : 1 } ) Mongo > db.test1.update( { a: 1} , {$set: { 'b.c': 1, 'b.c.a': 1 }}) have conflicting mods in update

    Description

      In the update operation if one of the updated key is prefix of any other updated key, I am getting "have conflicting mods in update" error. We are facing issue in our production system. Can someone throw some light if this is an expected behavior or there is some issue?

      Attachments

        Activity

          People

            Unassigned Unassigned
            abhishekiitg10@gmail.com Abhishek Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: