$set issue: have conflicting mods in update

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • None
    • Affects Version/s: 2.4.1
    • Component/s: Querying
    • None
    • Environment:
      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
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      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?

            Assignee:
            Unassigned
            Reporter:
            Abhishek Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: