[SERVER-19121] errors when doing upsert to a replica Created: 24/Jun/15  Updated: 01/Jul/15  Resolved: 01/Jul/15

Status: Closed
Project: Core Server
Component/s: Write Ops
Affects Version/s: 3.0.4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Van Pham Assignee: Ramon Fernandez Marina
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

run the code against a replica set

Participants:

 Description   

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' } }



 Comments   
Comment by Ramon Fernandez Marina [ 01/Jul/15 ]

van.pham@wbgames.com, in the absence of more information I'm going to close this for now. If this is still an issue for you please add more details to help us reproduce and we'll reopen this ticket.

Thanks,
Ramón.

Comment by Ramon Fernandez Marina [ 24/Jun/15 ]

Hi van.pham@wbgames.com, can you please elaborate on the kind of operation that's triggering this error message? Do you have a script that reproduces it?

Thanks,
Ramón.

Generated at Thu Feb 08 03:49:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.