When using $explain in a mixed cluster I get a exception: assertion src/mongo/bson/bsonobjbuilder.h:93 in the returned object and the logs don't look healthy.
However, when running with cursor which also isn't supported in 2.4 I get a nice error message:
db.runCommand({ "aggregate" : "<sharded_collection>" , "pipeline" : [ { "$project" : { "a" : 1 }} ] , "cursor" : { }}) { "code" : 17020, "ok" : 0, "errmsg" : "exception: All shards must support cursors to get a cursor back from aggregation" }
- is related to
-
SERVER-13050 Misleading error message with aggregation explain on mixed-version cluster
- Closed