-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.8.3, 2.2.0, 2.2.1
-
Component/s: Write Ops
-
Environment:
-
Fully Compatible
-
ALL
Steps:
1. Insert object into shard (successfully)
2. Update object by _id (WriteResult writeResult = dbCollection.update(query, update, false, false, WriteConcern.SAFE)
query looks like: {_id : XYZ}
update looks like: {$set : {foo : bar, foo2 : bar2}}
3. Object is updated
WriteResult:
{ writeResult = { "serverUsed":"127.0.0.1:27017/myDB", "singleShard":"ReplSet3/ec2-xxxx.compute-1.amazonaws.com:27018,ec2-xxxx.compute-1.amazonaws.com:27018,ec2-xxxx.compute-1.amazonaws.com:27018", => "n":0, "lastOp":5686019109100191745, "connectionId":1524, "err":null, "ok":1.0, => "updatedExisting":true, "wtime":0, "writebackGLE": { "singleShard":"ReplSet3/ec2-xxxx.compute-1.amazonaws.com:27018,ec2-xxxx.compute-1.amazonaws.com:27018,ec2-xxxx.comput1.amazonaws.com:27018", "n":0, "lastOp":5686019109100191745, "connectionId":1524, "err":null, "ok":1.0 }, "initialGLEHost":"ReplSet1/ec2-xxxx.compute-1.amazonaws.com:27018,ec2-xxxx.compute-1.amazonaws.com:27018,ec2-xxxx.compute1.amazonaws.com:27018" }
This is very hard to reproduce since it is very intermittent. Maybe somebody has an vague idea about the exact situation when this might occur. One thing to note is that step 1 and 2 are executed very quickly.
I had created a thread in the forum: http://groups.google.com/group/mongodb-user/browse_thread/thread/d1ca7e977dc7455b/973cab27e21df385?lnk=gst&q=smigfu#973cab27e21df385
- is duplicated by
-
SERVER-7580 PHP getLastError wrong when Sharding
- Closed
-
SERVER-7885 First update on just migrated document succeeds but gets GLE with n=0
- Closed
-
SERVER-7109 Errors in Writeback Listener is leaking to client's GLE
- Closed
- is related to
-
SERVER-7888 E11000 duplicate key error index while stopping the Balancer
- Closed
- related to
-
PYTHON-442 GridFS object creation causes index error
- Closed
-
SERVER-7958 GLE on sharded cluster can return previous operation's lastError
- Closed
-
SERVER-8097 Inserts don't increment writebacksSince
- Closed