[SERVER-13486] The geoNear command can create too large BSON objects Created: 04/Apr/14 Updated: 11/Jul/16 Resolved: 09/Apr/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | 2.6.0-rc1, 2.6.0-rc2 |
| Fix Version/s: | 2.6.1, 2.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | giuliano giuffrida | Assignee: | hari.khalsa@10gen.com |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Backport Completed: | |||||
| Steps To Reproduce: | for (var i = 1; i <= 200000; i++) db.testData.insert( { loc : {type:"Point", coordinates:[90*(i/200000),90*(i/200000)]}} ) db.testData.ensureIndex( {loc : "2dsphere"}) db.testData.aggregate([{$geoNear: {near : { type : "Point" , coordinates: [50,50] }, distanceField:"dist",spherical : true, maxDistance : (10000000), num:200000 }}]) |
||||
| Participants: | |||||
| Description |
|
Issue Status as of April 15, 2014 ISSUE SUMMARY USER IMPACT WORKAROUNDS RESOLUTION AFFECTED VERSIONS PATCHES Original descriptionThe new aggregation framework on 2.6.0 returns a cursor, so its output should be unlimited. > db.testData.aggregate([{$geoNear: {near : { type : "Point" , coordinates: [50,50] } , distanceField:"dist",spherical : true, maxDistance : (10000000), num:200000 }}]) ", ", ", |
| Comments |
| Comment by giuliano giuffrida [ 23/Apr/14 ] |
|
"The geoNear command does not check if the BSON size limit is reached when assembling the result array." I don't understand: why a "result array" and not a cursor ? |
| Comment by Githook User [ 09/Apr/14 ] |
|
Author: {u'username': u'hkhalsa', u'name': u'Hari Khalsa', u'email': u'hkhalsa@10gen.com'}Message: (cherry picked from commit b4a2cc96b18cacdfece81215d9d8c7a3a84ba20a) |
| Comment by Githook User [ 08/Apr/14 ] |
|
Author: {u'username': u'hkhalsa', u'name': u'Hari Khalsa', u'email': u'hkhalsa@10gen.com'}Message: |