[CDRIVER-589] Driver should sanity check the size of the request document and fail fast Created: 23/Mar/15 Updated: 03/May/17 Resolved: 23/Mar/17 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | Bulk API, libmongoc |
| Affects Version/s: | None |
| Fix Version/s: | 1.7.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Anil Kumar | Assignee: | Backlog - C Driver Team |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
The driver should fail fast on document bounds. For large document, i.e. the ones going beyond the 16 MB document limit (or whatever server publishes to be the limits) the server may either return an error or close the connection which leaves the client with a failed socket but without any specific error information based on which it make any intelligent decision to skip documents. It would be much more efficient if the driver layer can perform the necessary validations in terms of document size etc. The java driver already performs these checks before sending the request to the MongoDB instance.
|
| Comments |
| Comment by Githook User [ 24/Mar/17 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: |
| Comment by Githook User [ 24/Mar/17 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: |
| Comment by A. Jesse Jiryu Davis [ 08/Feb/17 ] |
|
I spoke too soon: https://github.com/mongodb/mongo-c-driver/pull/420/ Accept this PR with a test and merge for 1.7.0. |
| Comment by A. Jesse Jiryu Davis [ 05/Jan/17 ] |
|
No reported bugs of this nature in the last year. |
| Comment by A. Jesse Jiryu Davis [ 08/Jun/15 ] |
|
This may be duplicated by a series of bulk API bugs I've opened in the last month, just need to audit and ensure all paths are tested. |