errors when doing upsert to a replica

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Incomplete
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.0.4
    • Component/s: Write Ops
    • None
    • ALL
    • Hide

      run the code against a replica set

      Show
      run the code against a replica set
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We run the following code on a replica set:
      upsert : options.upsert || false,
      multi : false,
      w : 1,
      wtimeout: 5000

      We received the following error:

      { [MongoError: Modifiers operate on fields but we found a String instead. For example: {$mod: {<field>: ...}} not {$set: "[object Object]"}]
        name: 'MongoError',
        code: 9,
        err: 'Modifiers operate on fields but we found a String instead. For example: {$mod: {<field>: ...}} not {$set: "[object Object]"}',
        body: 
         { controller: 'StorageMongo',
           action: 'FindOneAndUpdate.Update' } }
      

            Assignee:
            Ramon Fernandez Marina
            Reporter:
            Van Pham
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: