[CDRIVER-2321] _mongoc_write_command_execute always continues after oversized document Created: 11/Oct/17 Updated: 28/Oct/23 Resolved: 31/Oct/17 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | 1.9.0 |
| Fix Version/s: | 1.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Reading the code, it appears to me that both branches of _mongoc_write_command_execute (_mongoc_write_opmsg and _mongoc_write_opquery) skip a document that exceeds maxBsonObjectSize and then continue sending the rest of the documents in the batch. They should conform to PyMongo and (I think) other drivers: a single oversized document aborts the bulk operation. Doesn't matter if the bulk op is ordered or unordered. |
| Comments |
| Comment by Githook User [ 31/Oct/17 ] |
|
Author: {'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}Message: A bulk operation should abort after encountering an oversized document, |
| Comment by A. Jesse Jiryu Davis [ 24/Oct/17 ] |
|
Check other drivers, and if needed open a SPEC ticket to write down what the behavior ought to be here. |