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
- related to
-
SERVER-2212 Server automatically abort queries/commands after user-specified time limit
- Closed