[CDRIVER-2959] "validate" option is passed in command Created: 11/Feb/19 Updated: 28/Oct/23 Resolved: 12/Feb/19 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | 1.10.3 |
| Fix Version/s: | 1.14.0 |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | Kevin Albertson | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
I noticed the "validate" option had broken our performance tests on newer MongoDB. The "validate" option dictates whether or not we validate user supplied BSON documents before adding them to the relevant operation: However, this option appears to be broken. We must not send this as part of the command but it appears we do. A test like this fails:
With an error message:
I've confirmed with wireshark that we are sending "valildate" as part of the insert command, and that the server is generating this error. This seems to go back as far as 1.10 (possibly this was introduced in IDL parsing of It seems MongoDB 3.2 didn't care that we sent the extra "validate" option and just ignored it. But newer (at least 3.6, haven't checked 3.4) does. |
| Comments |
| Comment by Githook User [ 11/Feb/19 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message: |
| Comment by Kevin Albertson [ 11/Feb/19 ] |
|
Only appears to affect bulk insert. "validate" was added as a bulk option in |