[SERVER-11216] Interrupted geoNear commands on mongos don't return an error code Created: 16/Oct/13  Updated: 11/Jul/16  Resolved: 21/Oct/13

Status: Closed
Project: Core Server
Component/s: Geo
Affects Version/s: 2.5.2
Fix Version/s: 2.5.4

Type: Bug Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Siyuan Zhou
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-2212 Server automatically abort queries/co... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Currently geoNear command doesn't return error code on mongos. It works well on mongod.

{ "ok" : 0, "errmsg" : "exception: operation exceeded time limit" }

The problem is here. Only error message is set and returned.
https://github.com/mongodb/mongo/blob/r2.5.2/src/mongo/s/commands_public.cpp#L1231



 Comments   
Comment by auto [ 21/Oct/13 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-11216 Interrupted geoNear commands on mongos don't return an error code

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/886c5d5c50437d49ab9f4702b86110cb3448cef3

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