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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.4
    • 2.5.2
    • Geo
    • Fully Compatible
    • ALL

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: