[SERVER-12398] Confusing error when $meta projecting geoNearDistance for non-geo query Created: 17/Jan/14  Updated: 11/Jul/16  Resolved: 10/Feb/14

Status: Closed
Project: Core Server
Component/s: Geo, Querying
Affects Version/s: None
Fix Version/s: 2.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Andrew Emil (Inactive) Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File server12398.js    
Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Seems to be a confusing response. Also seems inconsistent that we don't error out when nothing is returned from the query.

> db.test.drop()
true
> x = db.test.find({}, {b:{$meta: "geoNearDistance"}})
>
> db.test.insert({a:1})
Insert WriteResult({ "ok" : 1, "n" : 1 })
> x = db.test.find({}, {b:{$meta: "geoNearDistance"}})
error: {
        "$err" : "Runner error, memory limit for sort probably exceeded",
        "code" : 17144
}



 Comments   
Comment by Githook User [ 24/Feb/14 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-12398 uassert instead of log warning on getMore runner error
Branch: master
https://github.com/mongodb/mongo/commit/7ee0b022ced2adb3e12bad9fa6af3f6225b3fdb5

Comment by Githook User [ 10/Feb/14 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-12398 bubble error from plan stages to runner
Branch: master
https://github.com/mongodb/mongo/commit/91204d077bb34b40d1cffa2bbe40c92a08c64d66

Comment by Daniel Pasette (Inactive) [ 30/Jan/14 ]

can you spec a way to bubble low level err message up above the Runner interface?

Generated at Thu Feb 08 03:28:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.