Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11216

Interrupted geoNear commands on mongos don't return an error code

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.4
    • Affects Version/s: 2.5.2
    • Component/s: Geo
    • Fully Compatible
    • ALL

      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

            Assignee:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Reporter:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: