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

errors when doing upsert to a replica

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

      run the code against a replica set

      Show
      run the code against a replica set

      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@mongodb.com Ramon Fernandez Marina
            Reporter:
            van.pham@wbgames.com Van Pham
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: