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

Misleading error message with aggregation explain on mixed-version cluster

    • Fully Compatible
    • ALL

      We have a cluster with a 2.6 mongos, a 2.6 mongod as one shard, and a 2.4 as a second shard. We expect the following query to cause an error:

      > db.coll.aggregate([{ "$project" : { "_id" : "$_id" }}], { explain: true })
      

      However, the error message we get back is 'unrecognized field "cursor,"' when it really could be something more helpful like "explain is not supported for aggregation queries on mixed-version clusters."

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: