[SERVER-17835] Aggregation geoNear deprecated uniqueDocs warning Created: 01/Apr/15 Updated: 17/Mar/16 Resolved: 01/Apr/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework, Geo |
| Affects Version/s: | 2.6.9 |
| Fix Version/s: | 3.0.3, 3.1.1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Nikolai Zujev | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | Linux | ||||
| Backport Completed: | |||||
| Steps To Reproduce: | 1) prepare collection (mydb)
2) insert sample doc into "timezone" collection
3) run command w/o uniqueDocs - see warning
4) check logs and find warning
|
||||
| Participants: |
| Description |
|
$geoNear pipeline within aggregate command always logs a warning about deprecated option "uniqueDocs" (see below), even if that option has never been set or used. mongodb.log:
As I get right, aggregation command calls first GeoNear command with always set "uniqueDocs" option. See https://github.com/mongodb/mongo/blob/r2.6.9/src/mongo/db/pipeline/document_source_geo_near.cpp#L139 |
| Comments |
| Comment by Githook User [ 20/Apr/15 ] |
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: (cherry picked from commit 3cf0c18aa2c56949fda47ab35570489d68965370) |
| Comment by Githook User [ 20/Apr/15 ] |
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: (cherry picked from commit e42605bba71b9fc99b9ce275f46302df98f82670) |
| Comment by Githook User [ 01/Apr/15 ] |
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by Githook User [ 01/Apr/15 ] |
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by Ramon Fernandez Marina [ 01/Apr/15 ] |
|
Thanks for your report nikolai@cluelist.com; this does look like a bug, so we're looking into it. Feel free to watch the ticket for updates. |