[CDRIVER-759] Oversized bulk insert to mongos 2.4 considered successful Created: 21/Jul/15  Updated: 08/Dec/15  Resolved: 23/Nov/15

Status: Closed
Project: C Driver
Component/s: Bulk API, libmongoc
Affects Version/s: 1.1.9
Fix Version/s: 1.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-497 Run full test suite in Continuous Int... Closed

 Description   

test_large_inserts_ordered fails with a 2.4 mongos. mongos responds to getLastError after an oversized insert:

	{ err: "assertion src/mongo/s/strategy_shard.cpp:461", n: 0, ok: 1.0 }

There's an "err" but no "code", so _mongoc_write_result_merge_legacy skips it. There may be more cases where the server returns an err with no code, audit all.



 Comments   
Comment by Githook User [ 23/Nov/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-759 handle errors with "err" but no "code"
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/dd737ad99965188df144a6fc7e609786b3c580ea

Generated at Wed Feb 07 21:10:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.