Misleading error message with aggregation explain on mixed-version cluster

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 Stearn
              Reporter:
              Samantha Ritter (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: