[SERVER-14314] writeConcern complains about too large an object returned Created: 19/Jun/14  Updated: 10/Dec/14  Resolved: 19/Aug/14

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

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

Issue Links:
Duplicate
duplicates SERVER-14123 some operations can create BSON objec... Closed
Operating System: ALL
Participants:

 Description   

Here is an error that was returned to application - a multi update with giant array of $in values to update:

com.mongodb.WriteConcernException: { 
    "serverUsed" : "big-cache-1.Socialite-Stage.6519.mongodbdns.com:27017" , 
    "ok" : 1 , 
    "n" : 0 , 
   "updatedExisting" : true , 
   "err" : "multiple errors for op : BSONObj size: 17599963 (0x10C8DDB) is invalid. Size must be between 0 and 16793600(16MB) :: and :: BSONObj size: 17599963 (0x10C8DDB) is invalid. Size must be between 0 and 16793600(16MB) :: and :: BSONObj size: 17599963 (0x10C8DDB) is invalid. Size must be between 0 and 16793600(16MB)" , "code" : 65 , 
   "causedBy" : [ 
        { "index" : 0 , "code" : 10334 , "errmsg" : "BSONObj size: 17599963 (0x10C8DDB) is invalid. Size must be between 0 and 16793600(16MB)"} , { "index" : 0 , "code" : 10334 , "errmsg" : "BSONObj size: 17599963 (0x10C8DDB) is invalid. Size must be between 0 and 16793600(16MB)"} , 
        { "index" : 0 , "code" : 10334 , "errmsg" : "BSONObj size: 17599963 (0x10C8DDB) is invalid. Size must be between 0 and 16793600(16MB)"}
     ]
}

It might just be mongos aggregating together shard results and the shards were impacted by SERVER-14123?



 Comments   
Comment by Ramon Fernandez Marina [ 19/Aug/14 ]

asya, I'm going to tentatively resolve this issue as a duplicate, as most likely it was caused by SERVER-14123. If you run into it again please reopen this ticket and provide a reproducer if possible.

Regards,
Ramón.

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