[CDRIVER-2517] Aggregation on sharded cluster fails when $gleStats is used as a cursor option Created: 22/Feb/18 Updated: 28/Oct/23 Resolved: 26/Feb/18 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 1.9.0 |
| Fix Version/s: | 1.9.3, 1.10.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeremy Mikola | Assignee: | Jeremy Mikola |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
mongod/mongos 3.4.9 |
||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
In
I traced this error to _mongoc_cursor_new_with_opts(), called by mongoc_cursor_new_from_command_reply(), which we call when constructing the cursor for a command response. This error does not appear in versions of the PHP driver before 1.4.0 (libmongoc 1.9.2), so I believe it originated with 25ee119 for Since the logic in mongoc_cursor_new_from_command_reply() does exclude certain fields before copying the reply document into a new BSON document for cursor options, I wonder if it should be enhanced to ignore all $-prefixed fields (which would trigger the same error in _mongoc_cursor_new_with_opts()), or at least $gleStats (as it does $clusterTime). There isn't much documentation on the $gleStats available, but |
| Comments |
| Comment by Githook User [ 02/Mar/18 ] |
|
Author: {'email': 'jmikola@gmail.com', 'name': 'Jeremy Mikola', 'username': 'jmikola'}Message: |
| Comment by Githook User [ 02/Mar/18 ] |
|
Author: {'email': 'jmikola@gmail.com', 'name': 'Jeremy Mikola', 'username': 'jmikola'}Message: |
| Comment by Githook User [ 26/Feb/18 ] |
|
Author: {'email': 'jmikola@gmail.com', 'name': 'Jeremy Mikola', 'username': 'jmikola'}Message: |
| Comment by Githook User [ 26/Feb/18 ] |
|
Author: {'email': 'jmikola@gmail.com', 'name': 'Jeremy Mikola', 'username': 'jmikola'}Message: |